Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse array python

#The original array
arr = [11, 22, 33, 44, 55]
print("Array is :",arr)
 
res = arr[::-1] #reversing using list slicing
print("Resultant new reversed array:",res)
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #reverse #array #python
ADD COMMENT
Topic
Name
1+4 =