Commit 485206dc by Patryk Czarnik

turtle wielokąt - v1

parent dca52039
......@@ -2,7 +2,10 @@ import turtle
boki = int(turtle.numinput('Pytanie', 'Podaj liczbę boków'))
t = turtle.Turtle()
kat = 360 / boki
# TODO narysuj wielokąt foremny o liczbie boków podanej przez użytkownika
for i in range(boki):
t.forward(100)
t.left(kat)
turtle.mainloop()
\ No newline at end of file
turtle.mainloop()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment