@AnouS/

TurtleWork1

Python (with Turtle)

No description

fork
loading
main.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
import turtle
t.turtle.Turtle()


#draw a purple house
t.color('purple')

# draw the base
for i in xrange(7):
  t.forward(50)
  t.left(100)
    
# move up
t.penup()
t.left(90
t.forward(57)
t.pendown()

# draw the roof
t.right(70)
t.forward(46)

t.penup()
t.left(29)
t.forward(90
t.pendown())
result
console