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
|
2029 Discussions
|
Please Login in order to post a comment
Python3:
Python Code: simply use * to unpack the list when printing.
arr = list(map(int, input().rstrip().split()))
print(*list(reversed(arr)))
Python code-
Javascript Solution: