STEP 15: Nice! Before we start writing our function, we should call it inside main().

  • In , drag Call with Parameters inside main(). It should be indented 4 spaces.
  • Then, change my_function to update_high_scores to call the function we just created.
  • Finally, change the variable my_var1 to "updated_scores.csv" and my_var2 to data.
  • With this call, update_high_scores() will create a new file called "updated_scores.csv".

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)