Book
Module 7 - Section 0 - Snow fall and snowmen again
Module 7 - Section 0 - Snow fall and snowmen again
Completion requirements
View
7.0.2 - More than one snowmen
To draw the snowman in multiple places we just have to repeat the draw_snowman function.
For this purpose we can use a for loop or nested loops for the number of snowmen that we want to be drawn inside the screen.
The loop should be in the Drawing Area inside the main loop.
# --- Drawing code should go here
for i in range(9):
for j in range(3):
draw_snowman(screen, 70*i, 160*j)