File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ def drw_square(some_turtle):
5
5
some_turtle .forward (100 )
6
6
some_turtle .right (90 )
7
7
8
-
9
8
def draw_art ():
10
9
window = turtle .Screen ()
11
10
window .bgcolor ("red" )
12
11
13
- #Create the turtle Brad - Draws a square
12
+ # Create the turtle Brad - Draws a square
14
13
brad = turtle .Turtle ()
15
14
brad .shape ("turtle" )
16
15
brad .color ("yellow" )
17
- brad .speed (2 )
18
- drw_square (brad )
19
-
20
- #Create the turtle Angie - Draws a circle
21
- angie = turtle .Turtle ()
22
- angie .shape ("arrow" )
23
- angie .color ("white" )
24
- angie .circle (100 )
16
+ brad .speed (4 )
17
+ for i in range (1 ,37 ):
18
+ drw_square (brad )
19
+ brad .right (10 )
20
+ # Create the turtle Angie - Draws a circle
21
+ # angie = turtle.Turtle()
22
+ # angie.shape("arrow")
23
+ # angie.color("white")
24
+ # angie.circle(100)
25
25
window .exitonclick ()
26
26
27
27
draw_art ()
You can’t perform that action at this time.
0 commit comments