Kapitel 18: Generatoren und list comprehension
This commit is contained in:
6
teil18/squares_for.py
Normal file
6
teil18/squares_for.py
Normal file
@@ -0,0 +1,6 @@
|
||||
squares = []
|
||||
|
||||
for x in range(1,6):
|
||||
squares.append(x**2)
|
||||
|
||||
print(squares)
|
Reference in New Issue
Block a user