up ex.35
This commit is contained in:
parent
7645242f74
commit
78211363b9
5 changed files with 147 additions and 5 deletions
19
sami/learn-python-the-hard-way/ex33.py
Normal file
19
sami/learn-python-the-hard-way/ex33.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
i = 0
|
||||
numbers = []
|
||||
|
||||
while i < 6:
|
||||
print(f"At the top i is {i}")
|
||||
numbers.append(i)
|
||||
|
||||
i = i + 1
|
||||
print("Numbers now: ", numbers)
|
||||
print(f"At the bottom i is {i}")
|
||||
|
||||
|
||||
|
||||
|
||||
print("The numbers: ")
|
||||
|
||||
|
||||
for num in numbers:
|
||||
print(num)
|
||||
Loading…
Add table
Add a link
Reference in a new issue