STEP 15: To change a specific grade, first we need to find its index in the list.

  • Go to and drag Get Index of Value into change_grade().
  • Change my_var to index. Change my_list to list_of_grades. Change my_param to grade.
  • Drag Set Value at Index onto the next line in change_grade().
  • Change my_list to list_of_grades, change 0 to index, and change my_var to change.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)