Код:import turtle
window = turtle.Screen()
t = turtle.Turtle()
t.pensize(3)
side1 = 100
side2 = 120
# Малюємо прямокутник
t.forward(side1)
t.left(90)
t.forward(side2)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Код:
import turtle
window = turtle.Screen()
t = turtle.Turtle()
t.pensize(3)
side1 = 100
side2 = 120
# Малюємо прямокутник
t.forward(side1)
t.left(90)
t.forward(side2)
t.left(90)
t.forward(side1)
t.left(90)
t.forward(side2)