STEP 2: Let's now rename our new function, which we'll call handle_user_errors!

  • Above where it says MAIN FUNCTION, change my_function() to handle_user_errors().
  • Then, change your docstring to the following: """ Handles the user's errors """
  • Then, inside main(), change my_function() to handle_user_errors().
  • handle_user_errors() has no parameters, but will return the user's input as a list.

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)