-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcar.py
More file actions
54 lines (54 loc) · 903 Bytes
/
car.py
File metadata and controls
54 lines (54 loc) · 903 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
import turtle
car = turtle.Turtle()
car.color('grey')
car.goto(-200,0)
car.pendown()
car.begin_fill()
car.forward(300)
car.left(90)
car.forward(50)
car.left(90)
car.forward(300)
car.left(90)
car.forward(50)
car.penup()
car.goto(-150,50)
car.fillcolor('grey')
car.end_fill()
car.color('grey')
car.goto(-45,50)
car.write("SANJAYA CAR",False,'center')
car.penup()
car.goto(-150,50)
car.pendown()
car.setheading(45)
car.forward(70)
car.setheading(0)
car.forward(100)
car.setheading(-45)
car.forward(70)
car.setheading(90)
car.penup()
car.goto(-100,50)
car.pendown()
car.forward(49.50)
car.penup()
car.goto(0,50)
car.pendown()
car.forward(49.50)
car.penup()
car.goto(-100,10)
car.pendown()
car.color('black')
car.fillcolor('black')
car.begin_fill()
car.circle(20)
car.end_fill()
car.penup()
car.goto(50,5)
car.color('black')
car.fillcolor('black')
car.begin_fill()
car.circle(20)
car.end_fill()
turtle.done()