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

View File

@@ -0,0 +1,3 @@
squares = [x **2 for x in range(1,6)]
print(squares)