Answers for "Reverse an Array using Python"

0

Reverse an Array using Python

def reverseList(A):
  print( A[::-1])
     
# Driver function to test above function
A = [1, 2, 3, 4, 5, 6]
print(A)
print("Reversed list is")
reverseList(A) 
Posted by: Guest on August-24-2021

Code answers related to "Reverse an Array using Python"

Python Answers by Framework

Browse Popular Code Answers by Language