STEP 8: Nice! Let's now ask the user for the color of the stars.

input() is the console's version of ask(), which requests input from a user, storing it as a string.

  • In , drag Input Text indented inside get_user_input().
  • Change "What is your name?" to "What color should the stars be?".
  • Then, change the variable to the left of the = sign from my_var to 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)