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