STEP 6: Let's call our new function inside handle_user_errors().

  • We should handle input before using it to create stars, which is why we'll call get_user_input() here.
  • In , drag Function Call into Variable indented inside handle_user_errors().
  • Change my_function to get_user_input and my_var to user_input.
  • Finally, drag Return Statement below and change my_var to user_input. It should be indented 4 spaces.

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)