Files
Manolo Hernandez Lütten b4cd108d93 The new materials
2026-06-24 09:15:41 +02:00

28 lines
561 B
Python

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"])