elso feladatok
This commit is contained in:
18
elso/elso.py
Normal file
18
elso/elso.py
Normal 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()
|
||||
Reference in New Issue
Block a user