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

RULE: When a shape has multiple parameters, the parameters must be separated by commas.

  • Click Run and read the error message.
  • Debug the program by adding a comma so that it draws a cyan colored rectangle.
  • Click Run to see your changes and Submit and Next when you are done.

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

# sprite = codesters.Rectangle(x, y, width, height, "color") my_rectangle = codesters.Rectangle(0, 0, 300, 90 "cyan")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)