WARNING: This program has a bug and we need to fix it! We're trying to draw a rectangle but it has the wrong height!

RULE: You should use comments to determine which parameters match with which value.

  • Click Run to see what's wrong.
  • Debug the program so that it draws a rectangle with a height of 200.
  • Click Run after you make a change to test your program.

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

stage.set_background("grid") # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(100, 100, 100, 50, "blue")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)