STEP 4: This function will loop through the list and print each index and its value to the console.

  • Go to and drag Loop through List into print_grades.
  • Change value to grade and my_list to list_of_grades.
  • Go to and drag Get Index of Value into the loop in print_grades. Double indent!
  • Change my_var to index, change my_list to list_of_grades, and change my_param to grade.

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)