diff --git a/python/reverse_list.py b/python/reverse_list.py new file mode 100644 index 0000000..d0d1c32 --- /dev/null +++ b/python/reverse_list.py @@ -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