-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturtle.py
More file actions
61 lines (58 loc) · 864 Bytes
/
turtle.py
File metadata and controls
61 lines (58 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import turtle
t=turtle.Pen()
t.forward(50);
t.left(90);
t.forward(50);
t.left(90);
t.forward(50);
t.left(90);
t.forward(50);
t.left(90);
t.reset();
t.backward(100);
t.up();
t.right(90);
t.forward(20);
t.right(90);
t.down();
t.backward(100);
t.right(90);
t.forward(20);
t.up();
t.left(90);
t.forward(100);
t.left(90);
t.down();
t.forward(20);
t.reset();
t.forward(100);
t.left(120);
t.forward(100);
t.left(120);
t.forward(100);
t.reset();
for x in range(4):
t.forward(50);
t.up();
t.forward(10);
t.left(90);
t.forward(10);
t.down();
t.reset();
for x in range (0,5):
t.forward(100);
t.left(144);
t.reset();
t.color("blue");
t.pensize(5);
for x in range (1,19):
t.forward(100);
if x % 2 == 0:
t.left(175);
else:
t.left(225);
t.reset();
t.color(1,1,0);
t.begin_fill();
t.circle(50);
t.end_fill();