Answer to Question #232600 in Python for Assignment

Question #232600
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=' ')
	

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS