-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawing_Exercise.py
More file actions
38 lines (31 loc) · 800 Bytes
/
Drawing_Exercise.py
File metadata and controls
38 lines (31 loc) · 800 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
38
import turtle
def draw_square(some_turtle):
for i in range (1,5):
some_turtle.forward(160)
some_turtle.right(90)
def draw_triangle(some_turtle):
for i in range (1,4):
some_turtle.back(160)
some_turtle.left(120)
def drawing():
window = turtle.Screen()
window.bgcolor("white")
sharp = turtle.Turtle()
sharp.shape("classic")
sharp.color("green")
sharp.speed(10)
for i in range(1,25):
draw_square(sharp)
sharp.right(15)
#izzy = turtle.Turtle()
#izzy.shape("triangle")
#izzy.color("blue")
#izzy.speed(5)
#izzy.circle(90)
#pointy = turtle.Turtle()
#pointy.shape("turtle")
#pointy.color("purple")
#pointy.speed(3)
#draw_triangle(pointy)
window.exitonclick()
drawing()