STEP 6: Let's collect user input that we can use to control how the rest of our program runs.

  • Click on . Drag out Ask.
  • Change the question string to in .ask() to "Do you want to go to Pluto?"
  • Change the variable to the left of the equal sign to pluto_ans.
  • We use the name pluto_ans to remind us that this variable stores an answer to the question about pluto.

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)