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

A(n) _____ is a consumer report that employers use to screen potential employees and check their credit, history, and legal status. a. background check b. com
To locate the depth of the Great Lakes, you should look on a data map.
Simplify and solve this equation for q: 3q + 5 + 2q – 5 = 65.
which of the following is the key difference between the U.S. system of government and a multiparty system of government?-the election of a prime minister -the
what is the relationship between common sense and declaration of independence
1. Define humidity. 2. Name two (2) things that increase humidity.
can a real number be both rational and irrational?
Milo's steakhouse has 130 tables each table has a dozen roses in the center how many roses are there in all
Name the corresponding part if rst = wxy. St
Jillian walked 0.5 miles before she started jogging at an average pace of 5 miles per hour. The equation d = 0.5 + 5t can be used to relate the total distance,