STEP 5: Time to print our formatted string to the console. This will show the grade at each index of the grades list!

  • From , drag Print Variable inside the loop in print_grades(). Double indent!
  • Change the variable in the parentheses to my_string which we just created.
  • Click Run to see the output.

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)