STEP 3: Now let's show the value the user entered on the stage!

The Variable Display tool has a name that we use to refer to it. It also takes a variable as an argument to display.

  • In LOGIC, click on . Drag Variable Display into your program.
  • Change the variable name to the left of the equal sign from sprite to price_display.
  • Change the variable argument in the .Display() command from my_var to price.

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)