-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathday17.py
48 lines (48 loc) · 989 Bytes
/
day17.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
import turtle
trtl=turtle.Turtle()
trtl.speed(10)
for i in range(0,400,20):
trtl.pencolor('lightgreen')
trtl.penup()
trtl.setpos(-200+i,-200)
if i==0:
trtl.left(90)
trtl.pendown()
trtl.forward(400)
trtl.backward(400)
for i in range(0,400,20):
trtl.pencolor('lightgreen')
trtl.penup()
trtl.setpos(-200,-200+i)
if i==0:
trtl.right(90)
trtl.pendown()
trtl.forward(400)
trtl.backward(400)
trtl.penup()
trtl.home()
trtl.pendown()
trtl.pencolor('black')
trtl.backward(200)
trtl.forward(400)
trtl.backward(200)
trtl.left(90)
trtl.forward(200)
trtl.backward(400)
trtl.penup()
trtl.setpos(5,5)
trtl.pendown()
trtl.write(0)
trtl.penup()
trtl.setpos(190,5)
trtl.pendown()
trtl.write("x")
trtl.penup()
trtl.setpos(5,190)
trtl.pendown()
trtl.write("y")
trtl.penup()
trtl.setpos(80,-180)
trtl.pendown()
trtl.write("Nitin Diwakar Graph Paper")
trtl.ht()