STEP 14: We've updated our high score list, but now we need to add the updated data to a new CSV file!

  • This function will need two parameters: the name of a new file to which we're writing and our updated data.
  • In , drag in Define Function with Docstring above where it says: MAIN FUNCTION.
  • Rename my_function to update_high_scores and type file_name, my_data inside the ( ).
  • Finally, change your docstring to the following: """ Uses list of lists to write to new 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)