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

The below picture shows the food web of the American prairie. What could happen if all of the prairie dogs died? Provide a detailed account of the consequence
Pls help I will mark brainliest
What does Biddy intend to do after Mrs. Joe's death?
When you practice assertive communication are you are trying to persuade others to agree with your point of view
Why does the author name the woman Mrs. Luella Bates Washington Jones? A. to show that she has a strong and intimidating presence B. to make her sound elegant
Octavia has received an email from a customer asking her a question about a product unfortunately Octavia doesn't know the answer however she has a team meeting
Why do markets produce too few public goods for consumption? A)There is no market at all for any public good. B)Because the government has a monopoly on the m
What is the inverse of 5x+1/x-5
harriet has $616 to buy desks for her new office. She needs 15 in all, and decides to buy 2 types of desks. Type A cost $42 and Type B desks cost $40. How many
what does rise run mean