elso feladatok
This commit is contained in:
3
Pista/Pista.py
Normal file
3
Pista/Pista.py
Normal file
@@ -0,0 +1,3 @@
|
||||
Pista = 6
|
||||
|
||||
print(Pista + 4)
|
||||
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()
|
||||
3
komment/komment.py
Normal file
3
komment/komment.py
Normal file
@@ -0,0 +1,3 @@
|
||||
matek = 5 + 3
|
||||
#matek += 3
|
||||
print(matek)
|
||||
5
lusta/lusta.py
Normal file
5
lusta/lusta.py
Normal file
@@ -0,0 +1,5 @@
|
||||
lustasag = "Lustasag "
|
||||
fel = "fel "
|
||||
egeszseg = "egeszseg"
|
||||
|
||||
print(lustasag + fel + egeszseg)
|
||||
7
matek/matek.py
Normal file
7
matek/matek.py
Normal file
@@ -0,0 +1,7 @@
|
||||
matek = 6 * 1 - 2
|
||||
|
||||
print(matek)
|
||||
|
||||
matek2 = 6 * (1 - 2)
|
||||
|
||||
print(matek2)
|
||||
Reference in New Issue
Block a user