Skip to content

Commit 09f5cd5

Browse files
authored
Create draw_shapes
1 parent 6ba8459 commit 09f5cd5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

draw_shapes

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import turtle
2+
3+
def draw_3shapes():
4+
window = turtle.Screen()
5+
window.bgcolor("red")
6+
brad = turtle.Turtle()
7+
brad.shape("turtle")
8+
brad.color("yellow")
9+
brad.speed(4)
10+
for i in range(1,5):
11+
brad.forward(100)
12+
brad.right(90)
13+
#i += i
14+
15+
ted = turtle.Turtle()
16+
ted.shape("arrow")
17+
ted.color("blue")
18+
ted.circle(100)
19+
20+
sofia = turtle.Turtle()
21+
sofia.color("white")
22+
for j in range(1, 3):
23+
sofia.right(120)
24+
sofia.forward(100)
25+
sofia.goto(0, 0)
26+
27+
window.exitonclick()
28+
29+
draw_3shapes()

0 commit comments

Comments
 (0)