시작하기무료로 시작하기

Everyone wins

After the last exercise, you realize that you have the power not just to improve your own grades but the grades of everyone else. So why not use your skills to help others too?

The array of grades grades_array is available in your environment.

이 연습은 강의의 일부입니다

Introduction to Julia

강의 보기

연습 안내

  • Create a mutating function named topstudents!(), which accepts an array x, and changes all the elements to "AAAA".
  • Call the function on the grades_array array.

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Write a grade mutating function
____ ____(____)
	____
____

# Call the function on grades_array
____

println("The new grades are $(grades_array)")
코드 편집 및 실행