reverse an array using python

Solutions on MaxInterview for reverse an array using python by the best coders in the world

showing results for - "reverse an array using python"
Noah
01 Nov 2018
1def reverseList(A):
2  print( A[::-1])
3     
4# Driver function to test above function
5A = [1, 2, 3, 4, 5, 6]
6print(A)
7print("Reversed list is")
8reverseList(A) 
9