python turtle fan

Solutions on MaxInterview for python turtle fan by the best coders in the world

showing results for - "python turtle fan"
Mehdi
14 Jun 2016
1from turtle import*
2def square():
3   forward(100)
4   left(90)
5   forward(100)
6   left(90)
7   forward(100)
8   left(90)
9   forward(100)
10   left(90)
11   return
12
13color("green")
14square()
15exitonclick()
16
17color('yellow')
18left(10)
19forward(100)
20left(90)
21forward(100)
22left(90)
23forward(100)
24left(90)
25forward(100)
26left(90)
27
28color('blue')
29left(10)
30forward(100)
31left(90)
32forward(100)
33left(90)
34forward(100)
35left(90)
36forward(100)
37left(90)
38
39color('black')
40left(10)
41forward(100)
42left(90)
43forward(100)
44left(90)
45forward(100)
46left(90)
47forward(100)
48left(90)
49
50color('pink')
51left(10)
52forward(100)
53left(90)
54forward(100)
55left(90)
56forward(100)
57left(90)
58forward(100)
59left(90)
60
61color('red')
62left(10)
63forward(100)
64left(90)
65forward(100)
66left(90)
67forward(100)
68left(90)
69forward(100)
70left(90)
71