Python Day 7: Arrays
Given an array,A , of N integers, print A's elements in reverse order as a single line of space-separated numbers.
if __name__ == '__main__':
n = int(input())
arr = list(map(int, input().rstrip().split()))
print (*arr[::-1], sep=' ')
Please click on the like button if it worked
Solution not working or have any suggestions? Please send an email to [email protected]
donate a cup of tea :)
Join Our Facebook Group
Popular HackerRank Python Solutions
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.