Exercise 8 · Chapter: ListsOptional+50 XP
Reverse List
Read a list of numbers from input. The first line tells you how many numbers there are, and each following line has one number.
Print the numbers in reverse order, each on its own line.
Example input:
4 1 2 3 4
Example output:
4 3 2 1
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.