logo CodeStepByStep logo

draw_black_white_rectangle

Language/Type: Python graphics DrawingPanel
Related Links:

The following code attempts to draw a black-filled outer rectangle with a white-filled inner circle inside it. However, the graphical output does not display the white inner circle. Modify the code so it will look as intended.

Bare code: Write a fragment of Python code as described, without any class or function/method heading around your code.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.