STEP 15: Great! Now if our get_user_input function throws an error, it doesn't stop the program from running.

  • Click Run and enter text for the first question. Do you get an error popup?
  • Rather than stop, our program runs the code underneath the except and then continues along as normal.
  • When you're ready, click Submit and Next to move on.

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)