Kapitel 18: Generatoren und list comprehension

This commit is contained in:
2023-06-08 19:38:09 +02:00
parent 9e78b44184
commit 124bff5e06
9 changed files with 62 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
squares = []
for x in range(1,6):
squares.append(x**2)
print(squares)