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

3
Pista/Pista.py Normal file
View File

@@ -0,0 +1,3 @@
Pista = 6
print(Pista + 4)

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()

3
komment/komment.py Normal file
View File

@@ -0,0 +1,3 @@
matek = 5 + 3
#matek += 3
print(matek)

5
lusta/lusta.py Normal file
View File

@@ -0,0 +1,5 @@
lustasag = "Lustasag "
fel = "fel "
egeszseg = "egeszseg"
print(lustasag + fel + egeszseg)

7
matek/matek.py Normal file
View File

@@ -0,0 +1,7 @@
matek = 6 * 1 - 2
print(matek)
matek2 = 6 * (1 - 2)
print(matek2)