Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heights = input('Heights: ')
- heights = list(heights.split(' '))
- from turtle import *
- penup()
- goto(-200,0)
- pendown()
- fillcolor('midnightblue')
- begin_fill()
- penup()
- for i in range(2):
- forward(400)
- right(90)
- forward(150)
- right(90)
- end_fill()
- fillcolor('orange')
- begin_fill()
- for i in range(2):
- forward(400)
- left(90)
- forward(150)
- left(90)
- end_fill()
- pendown()
- fillcolor('darkslategray')
- for i in heights:
- begin_fill()
- for j in range(2):
- forward(20)
- left(90)
- forward(int(i))
- left(90)
- end_fill()
- forward(20)
Add Comment
Please, Sign In to add comment