elso feladatok

This commit is contained in:
2021-11-25 14:06:28 +01:00
commit bcd7815c1e
5 changed files with 36 additions and 0 deletions

18
elso/elso.py Normal file
View File

@@ -0,0 +1,18 @@
import turtle
def negyzet_rajzolas(t, h):
for i in range(4):
t.forward(h)
t.left(90)
#ablak
a = turtle.Screen()
a.bgcolor("white")
a.title("Negyzet")
#rajzeszkoz
toll = turtle.Turtle()
negyzet_rajzolas(toll, 50)
a.mainloop()