Reverse a python array using reverse method

suggest change

The reverse() method does what the name says it will do - reverses the array. Here is an example :

my_array = array('i', [1,2,3,4,5])
my_array.reverse()
# array('i', [5, 4, 3, 2, 1])

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Arrays:
*Reverse a python array using reverse method

Table Of Contents
31Set
126Arrays
166Gzip