-
Notifications
You must be signed in to change notification settings - Fork 2
/
lab1.py
55 lines (48 loc) · 1022 Bytes
/
lab1.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
import turtle
# Draw a small circle.
def small_circle():
turtle.circle(100)
# Draw a big circle.
def big_circle():
turtle.circle(500)
# Draw any size circle.
def circle(radius):
turtle.circle(radius)
# Try running:
#
# >>> small_circle()
#
# >>> big_circle()
#
# >>> circle(300)
# Draw a house.
def house():
turtle.forward(100)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(50)
turtle.left(180)
turtle.forward(50)
turtle.right(90)
turtle.forward(100)
turtle.left(90)
turtle.circle(50, 180)
turtle.forward(50)
turtle.left(90)
turtle.forward(20)
turtle.left(90)
turtle.forward(30)
turtle.right(90)
turtle.forward(20)
turtle.right(90)
turtle.forward(30)
turtle.right(90)
turtle.forward(40)
turtle.right(180)
def square():
pass # DELETE THIS LINE AND REPLACE WITH YOUR CODE
def picture():
pass # DELETE THIS LINE AND REPLACE WITH YOUR CODE