unknown152714 unknown152714
  • 17-12-2020
  • Computers and Technology
contestada

give me a code that draws a house with a roof in python. Please Answer!!!

Respuesta :

Cytokine
Cytokine Cytokine
  • 17-12-2020

import turtle

window = turtle.Screen()

tr = turtle.Turtle()

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.back(100)

tr.left(120)

tr.forward(75)

tr.right(78)

tr.forward(60)

window.mainloop()

In my code, we use the turtle module for the graphics to draw the house with a roof.

Answer Link

Otras preguntas

in kilometers how much larger is the distance around the earth from east to west than the distance from north to south
How can I write a story about the doubles plus 2 fact 5+7=12.??
How do I simplify (3²)-³
What is 7/9 as a percent? Rounded to the nearest tenth percent.
What are two advantages that locomotion gives to an organism?
what is 7/12 - 1/6= in its simple form?
Do multiplication always make the number bigger
MESOPOTAMIA Besides land, what resources and acheivements made the city-states desirable to conquerors?
lily has 3 dog toys that are red. one fourth of all her dog toys are red. how many dog toys does lily have? first draw _ circles to show _ equal parts.
Why can there be two vertical cross sections for a right rectangular prism and only one horizontal cross section?