reverse list example/homework

This commit is contained in:
Mert Gör 🇹🇷 2024-06-09 19:11:22 +03:00
parent 9c1f18e2b7
commit b25e03adfd
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F

7
python/reverse_list.py Normal file
View File

@ -0,0 +1,7 @@
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
i = len(a) - 1
while i >= 0:
print(a[i], end=' ')
i -= 1