The new materials
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user