« All Events
5 PM – Intro To Python – Gamas
January 17, 2023 @ 5:00 pm - 6:00 pm
Homework
- Modify draw_square function.
- Add one more parameter: fill. When the “fill” parameter is True, then do the begin_fill() and end_fill(). When it is False, then do not do begin_fill() and end_fill().
- After you do above, call the function like this draw_square(“red”, True) and the result should be red square with solid color.
- After you do above, call the function like this draw_square(“yellow”, False) and the result should be yellow square with no solid color.
- Modify draw_square function
- Add two more parameters: x, y.
- When calling draw_square(“red”, True, -100, -100), it will draw the square in coordinate (-100, -100)