The new materials

This commit is contained in:
Manolo Hernandez Lütten
2026-06-24 09:15:41 +02:00
parent c0fc1681e5
commit b4cd108d93
4 changed files with 87 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
i = 0
while True:
i += 1
print("Hallo!", i)
if i == 5:
break
for i in range(5):
print("Hallo!", i+1)
names: list = ["Max Mustermann", "Thies Körner", "Christoph Treusch von Buttlar"]
print(names)
for name in names:
print(name)
students: list[dict] = [{"name": "Max Mustermann", "age": 25, "favorite_colour": "blue"},
{"name": "Thies Körner", "age": 16, "favorite_colour": "purple"}]
print(students)
for student in students:
print(student["name"], student["age"], student["favorite_colour"])