User:-red house-: Difference between revisions
Luisa Moura (talk | contribs) (Created page with "import turtle import random import math lado=a=b=50 c = math.sqrt(a**2+b**2) turtle.color('red') def house(): turtle.forward(lado) turtle.left(135) turtle.forw...") |
Luisa Moura (talk | contribs) m (Luisa Moura moved page -red house- to User:-red house-) |
(No difference)
|
Latest revision as of 11:54, 30 September 2013
import turtle
import random
import math
lado=a=b=50
c = math.sqrt(a**2+b**2)
turtle.color('red')
def house():
turtle.forward(lado)
turtle.left(135)
turtle.forward(c)
turtle.right(90)
turtle.forward(c/2)
turtle.right(90)
turtle.forward(c/2)
turtle.right(90)
turtle.forward(c)
turtle.right(135)
turtle.forward(lado)
turtle.right(90)
turtle.forward(lado)
turtle.right(90)
turtle.forward(lado)
turtle.left(90)
print house()
turtle.exitonclick()