-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathndiayem.py
63 lines (54 loc) · 1.15 KB
/
ndiayem.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
# Moustapha Ndiaye
# Ndiayem
# https://docs.google.com/document/d/1TvKTq21dxkEyqbjGJvurHCt17N3w86O7WtttUl9x9so/edit?usp=sharing
import turtle
turtle.setup(124,700)
turtle.bgcolor('green')
turtle.color("white")
turtle.pensize(6)
turtle.penup()
turtle.goto(450, -250)
turtle.pendown()
turtle.setheading(90)
turtle.forward(500)
turtle.setheading(180)
turtle.forward(900)
turtle.setheading(270)
turtle.forward(500)
turtle.setheading(0)
turtle.forward(900)
# Draw the right side
turtle.goto(450, -100)
turtle.setheading(180)
turtle.forward(100)
turtle.setheading(90)
turtle.forward(200)
turtle.setheading(0)
turtle.forward(100)
# Draw left side
turtle.penup()
turtle.goto(-450, -100)
turtle.pendown()
turtle.setheading(0)
turtle.forward(100)
turtle.setheading(90)
turtle.forward(200)
turtle.setheading(180)
turtle.forward(100)
# Draw the middle line
turtle.penup()
turtle.goto(0, -250)
turtle.pendown()
turtle.setheading(90)
turtle.forward(500)
# Draw the circle in the middle
turtle.penup()
turtle.goto(100, 0)
turtle.pendown()
turtle.circle(100)
turtle.penup()
turtle.goto(-20, -300)
turtle.pendown()
turtle.write("KhadiJa's Stadium")
turtle.hideturtle()
turtle.done()