Write a python program that takes 10 numbers from the user and prints the numbers in
reverse order.
Sample input:
1
2
3
4
5
6
7
8
9
10
Sample output:
10 9 8 7 6 5 4 3 2 1
1
Expert's answer
2021-09-05T08:23:59-0400
t = []
for _ in range(10):
t.append(int(input()))
for num in t[::-1]:
print(num, end=' ')
Comments
Leave a comment