exercise while 1

This commit is contained in:
Mert Gör 🇹🇷 2023-05-20 08:24:31 +03:00
parent a1dadd8d93
commit 312656ca6a
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

5
exercise-while.py Normal file
View 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