STEP 19: Here, the computer tries to make the stars a different color, but can't because the color doesn't exist.

A generic error is thrown when the computer experiences an error that isn't easily classified.

  • In , drag Generic Error to the bottom of handle_user_errors(), indenting it 8 spaces.
  • In the last print command, change what's inside the parentheses from "There was an error!" to "ERROR: Please enter a valid color.".

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)