WARNING: This program has a bug, which means we need to fix it!

RULE: Programs run in order from top to bottom. We need to create a variable before we can use it!

  • Click Run and read the error message.
  • Debug the program so that it draws a circle using the variable my_color.

Hint: Move the circle after the variable.

To navigate the page using the TAB key, first press ESC to exit the code editor.

circle = codesters.Circle(0, 0, 150, my_color) my_color = "purple"
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)