-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPython.py
More file actions
61 lines (59 loc) · 883 Bytes
/
Python.py
File metadata and controls
61 lines (59 loc) · 883 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
51
52
53
54
55
56
57
58
59
60
61
from turtle import *
speed(1)
bgcolor("black")
pencolor("white")
penup()
goto(-80, 0)
pendown()
left(90)
def python(color):
begin_fill()
fillcolor(color)
fd(30)
circle(-40, 90)
fd(90)
circle(30, 90)
fd(70)
circle(30,50)
circle(70, 40)
fd(32)
circle(70, 40)
circle(20, 50)
fd(35)
left(90)
fd(70)
right(90)
fd(12)
right(90)
fd(105)
circle(30,50)
circle(70, 40)
fd(23)
circle(70, 40)
circle(25, 50)
fd(19)
left(90)
fd(20)
end_fill()
python("#0088cc")
penup()
goto(90, 130)
pendown()
left(180)
python("gold")
begin_fill()
fillcolor("black")
penup()
goto(-50, 170)
pendown()
circle(13, 360)
end_fill()
begin_fill()
fillcolor("black")
penup()
goto(35, -45)
pendown()
circle(13, 360)
end_fill()
hideturtle()
done()