Odpowiedź:
import turtle
side = int(input("Podaj dlugosc boku:"))
print("Obwod wynosi: {}".format(side*4))
print("Pole wynosi: {}".format(side*side))
turtle.goto(0,0)
turtle.pd()
turtle.goto(side,0)
turtle.goto(side,side)
turtle.goto(0, side)
turtle.pu()
turtle.Screen().exitonclick()
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
import turtle
side = int(input("Podaj dlugosc boku:"))
print("Obwod wynosi: {}".format(side*4))
print("Pole wynosi: {}".format(side*side))
turtle.goto(0,0)
turtle.pd()
turtle.goto(side,0)
turtle.goto(side,side)
turtle.goto(0, side)
turtle.goto(0,0)
turtle.pu()
turtle.Screen().exitonclick()