Ответ:import turtle
window = turtle.Screen()
window.bgcolor("skyblue")
house = turtle.Turtle()
house.color("black")
house.speed(2)
house.penup()
house.goto(-100, -100)
house.pendown()
house.fillcolor("lightyellow")
house.begin_fill()
for _ in range(4):
house.forward(200)
house.left(90)
house.end_fill()
house.goto(-100, 100)
house.fillcolor("brown")
house.goto(0, 200)
house.goto(100, 100)
house.goto(-30, -100)
house.goto(-30, -30)
house.goto(30, -30)
house.goto(30, -100)
house.goto(-90, 0)
house.fillcolor("lightblue")
house.goto(-90, 50)
house.goto(-50, 50)
house.goto(-50, 0)
house.goto(10, 0)
house.goto(10, 50)
house.goto(50, 50)
house.goto(50, 0)
house.hideturtle()
turtle.done()
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
import turtle
window = turtle.Screen()
window.bgcolor("skyblue")
house = turtle.Turtle()
house.color("black")
house.speed(2)
house.penup()
house.goto(-100, -100)
house.pendown()
house.fillcolor("lightyellow")
house.begin_fill()
for _ in range(4):
house.forward(200)
house.left(90)
house.end_fill()
house.penup()
house.goto(-100, 100)
house.pendown()
house.fillcolor("brown")
house.begin_fill()
house.goto(0, 200)
house.goto(100, 100)
house.goto(-100, 100)
house.end_fill()
house.penup()
house.goto(-30, -100)
house.pendown()
house.fillcolor("brown")
house.begin_fill()
house.goto(-30, -30)
house.goto(30, -30)
house.goto(30, -100)
house.goto(-30, -100)
house.end_fill()
house.penup()
house.goto(-90, 0)
house.pendown()
house.fillcolor("lightblue")
house.begin_fill()
house.goto(-90, 50)
house.goto(-50, 50)
house.goto(-50, 0)
house.goto(-90, 0)
house.end_fill()
house.penup()
house.goto(10, 0)
house.pendown()
house.fillcolor("lightblue")
house.begin_fill()
house.goto(10, 50)
house.goto(50, 50)
house.goto(50, 0)
house.goto(10, 0)
house.end_fill()
house.hideturtle()
turtle.done()
Объяснение: