exercise while 1
This commit is contained in:
parent
a1dadd8d93
commit
312656ca6a
5
exercise-while.py
Normal file
5
exercise-while.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||||
|
i = len(a) - 1
|
||||||
|
while i >= 0:
|
||||||
|
print(a[i], end=' ')
|
||||||
|
i -= 1
|
Loading…
Reference in New Issue
Block a user