-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnowman.py
More file actions
50 lines (42 loc) · 724 Bytes
/
snowman.py
File metadata and controls
50 lines (42 loc) · 724 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
39
40
41
42
43
44
45
46
47
48
49
50
import turtle
bob = turtle.Turtle()
bob.speed(0)
#head
for i in range(36):
bob.forward(18)
bob.right(10)
#middle
for i in range(36):
bob.forward(12)
bob.left(10)
# head
bob.penup()
bob.goto(0,228)
bob.pendown()
for i in range(36):
bob.forward(8)
bob.right(10)
# eye right
bob.penup()
bob.goto(25,200)
bob.pendown()
for i in range(36):
bob.forward(1)
bob.right(10)
# eye left
bob.penup()
bob.goto(-20,200)
bob.pendown()
for i in range(36):
bob.forward(1)
bob.right(10)
# smile
bob.penup()
bob.goto(-20,180)
bob.pendown()
bob.right(90)
for i in range(18):
bob.forward(4)
bob.left(10)
bob.penup()
bob.goto(-200,-200)