-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
62 lines (42 loc) · 867 Bytes
/
app.py
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
62
# WINDOWS LOGO
#Importing turtle
from turtle import *
#setting turtle speed
speed(1)
width(4)
#setting color to blue
bgcolor('black')
color('blue')
begin_fill()
penup()
# moving turtle to starting point
goto(-50,60)
pendown()
#going to right top
goto(100, 100)
#going to right bottom
goto(100,-100)
#going to left bottom
goto(-50,-60)
#going to starting point
goto(-50,60)
end_fill()
penup()
#setting turtle color to black
color('black')
#changing width of the turtle
width(10)
# cutting the shape into two equal haves horizontally
# starting from left middle
goto(-50,0)
pendown()
#ending at the right middle
goto(100,0)
penup()
# cutting the shape into two halves vertically
#starting from upper middle
goto(25,80)
pendown()
#ending ar bottom middle
goto(25,-80)
done()