We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Tutorials
- 30 Days of Code
- Day 7: Arrays
- Discussions
Day 7: Arrays
Day 7: Arrays
Sort by
recency
|
2032 Discussions
|
Please Login in order to post a comment
n = int(input().strip())
For JAVA
int[] a=new int[n];
Python3:
Python Code: simply use * to unpack the list when printing.
arr = list(map(int, input().rstrip().split()))
print(*list(reversed(arr)))