STEP 12: To stop the user from causing errors, we should continue to ask for input while there is an error.

  • First, delete the existing function call and return statement inside handle_user_errors().
  • Then, in , drag While True right below your docstring in handle_user_errors().
  • Click Run and Console to see your while loop go! When ready for the next activity, click Stop.

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)