-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmindstorms.py
More file actions
37 lines (32 loc) · 864 Bytes
/
mindstorms.py
File metadata and controls
37 lines (32 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import turtle
def draw_square(some_turtle):
for i in range (1,5):
some_turtle.forward (100)
some_turtle.right (90)
def draw_art():
window = turtle.Screen()
window.bgcolor("red")
#create the turtle brad- Draws a square
brad = turtle.Turtle()
brad.shape("circle")
brad.color("blue")
brad.speed (300)
for i in range (1,37):
draw_square(brad)
brad.right(10)
#create the turtle angie - Draw a circle
angie = turtle.Turtle()
angie.shape("arrow")
angie.color ("black")
angie.circle(100)
#create the turtle tito- Draw a Triangle
tito = turtle.Turtle()
tito.shape("turtle")
tito.color("white")
y=0
while y<3:
tito.right(120)
tito.forward(90)
y=y+1
turtle.exitonclick()
draw_art()