diff --git a/1000/1000.py b/1000/1000.py new file mode 100644 index 0000000..8e1ba34 --- /dev/null +++ b/1000/1000.py @@ -0,0 +1,2 @@ +for a in range(1000): + print("Szeretjük a Python teknőcöket") \ No newline at end of file diff --git a/18 oldal/teknos3.py b/18 oldal/teknos3.py new file mode 100644 index 0000000..1f15339 --- /dev/null +++ b/18 oldal/teknos3.py @@ -0,0 +1,16 @@ +import turtle + +#ablak +a = turtle.Screen() +a.bgcolor("white") +a.title("Negyzet") + +#rajzeszkoz +Eszti = turtle.Turtle() +Eszti.forward(40) + +for i in range(18): + turtle.forward(45) + turtle.right(360 / 18) + +a.mainloop() \ No newline at end of file diff --git a/ciklus/ciklus.py b/ciklus/ciklus.py new file mode 100644 index 0000000..765f18c --- /dev/null +++ b/ciklus/ciklus.py @@ -0,0 +1,22 @@ +xs = [12, 10, 32, 3, 66, 17, 42, 99, 20] +j = 9 +for i in range(8): + print(xs[j]) + j -= 1 + +for i in range(8): + print(xs[i] + " " + pow(xs[i], 2)) + +osszeg = 0 + +for i in range(8): + osszeg += xs[i] + +print(osszeg) + +for i in range(7): + for j in range(8): + print(xs[i] * xs[j]) + + + diff --git a/honapok/honapok.py b/honapok/honapok.py new file mode 100644 index 0000000..e839b53 --- /dev/null +++ b/honapok/honapok.py @@ -0,0 +1,4 @@ +honapok = ["januar", "februar", "marcius", "aprilis", "majus", "junius", "julius", "augusztus", "szeptember", "oktober","november", "december"] + +for i in range(12): + print("Az ev", i+1,"honapja:",honapok[i]) \ No newline at end of file diff --git a/teknos/teknos.py b/teknos/teknos.py new file mode 100644 index 0000000..b5de746 --- /dev/null +++ b/teknos/teknos.py @@ -0,0 +1,13 @@ +import turtle + +#ablak +a = turtle.Screen() +a.bgcolor("white") +a.title("Negyzet") + +#rajzeszkoz +Eszti = turtle.Turtle() +Eszti.left(3645) + +a.mainloop() +print("atlosan jobbra fel") \ No newline at end of file diff --git a/teknos2/teknos2.py b/teknos2/teknos2.py new file mode 100644 index 0000000..ba9d44a --- /dev/null +++ b/teknos2/teknos2.py @@ -0,0 +1,35 @@ +import turtle + +#ablak +a = turtle.Screen() +a.bgcolor("white") +a.title("Negyzet") + +#rajzeszkoz +Eszti = turtle.Turtle() +Eszti.left(60) +Eszti.forward(100) +Eszti.left(240) +Eszti.forward(100) +Eszti.left(240) +Eszti.forward(100) +#negyzet +Eszti.forward(100) +Eszti.left(90) +Eszti.forward(100) +Eszti.left(90) +Eszti.forward(100) +Eszti.left(90) +Eszti.forward(100) +#hexagon +for i in range(6): + Eszti.forward(90) + Eszti.left(300) + +#oktagon +for i in range(8): + Eszti.forward(100) + Eszti.left(45) + + +a.mainloop() \ No newline at end of file diff --git a/teknos4/teknos4.py b/teknos4/teknos4.py new file mode 100644 index 0000000..132e98e --- /dev/null +++ b/teknos4/teknos4.py @@ -0,0 +1,13 @@ +import turtle + +#ablak +a = turtle.Screen() +a.bgcolor("white") +a.title("Negyzet") + +#rajzeszkoz +Eszti = turtle.Turtle() +print(type(Eszti)) + + +a.mainloop() \ No newline at end of file