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

Please select the word from the list that best fits the definition Type of bone used to build early houses ancestor mammoth culture agriculture domestication
"Drag the tiles to the blanks. Heart or Muscles? It's All Good. Working out the heart burns calories makes the heart more your resting blood pressure. and 1 sta
Four more than the product of 8 and a number
what is the reciprocal of 5 over 6
The following expression is an example of which property of real numbers? (-2) + 7 = 7 + (-2) A. additive identity B. commutative propertyC. multiplicative prop
In Romeo & Juliet: Who helps Romeo and Juliet plan to get married? Paris Nurse Mercutio Prince
(0.7a + 0.4b) – (1.6a – 3.2b)
=> Please Help Me With My Math <=
There are 15 people in a room. Each person ate of a pizza. There was no pizza remaining. How many pizzas were in the room?
A car and a van are driving on a highway. The table shows the amount y (in gallons) of gas in the car's gas tank after driving x miles. The amount of gas in the