Drawing with Turtles in Python 3: Write a program that draws out a house like th
ID: 3889470 • Letter: D
Question
Drawing with Turtles in Python 3:
Write a program that draws out a house like the figure below with the turtle package without lifting the pwn or retracing any lines. In the figure the length of each segment is 50.
Then modify your program to add to the drawing. Please add a tree next to the house.
Here is a link to help
https://docs.python.org/3/library/turtle.html
Explanation / Answer
>>> turtle.home() >>> turtle.position() (0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(50) >>> turtle.position() (-0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(120, 180) # draw a semicircle >>> turtle.position() (0.00,240.00) >>> turtle.heading(
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.