STEP 11: Before we finish this function we should return the variable csv_contents to main().

  • In LOGIC, click on and drag Return Statement to the bottom of get_high_scores().
  • Then, change the variable from my_var to csv_contents.
  • Great job! We've finished our first function that loops through and returns the data from our CSV file.

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)