STEP 12: Time to change the color of the circle based on the user input.

  • Go to and drag in Set Color to the bottom of your program.
  • Change the variable in front of set_color() from sprite to circle.
  • Change the text inside set_color() from "green" to the variable choice.

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)