Remove last array element using pop method
suggest changepop removes the last element from the array. Here is an example :
my_array = array('i', [1,2,3,4,5])
my_array.pop()
# array('i', [1, 2, 3, 4])
So we see that the last element (5) was popped out of the array. pop returns 5. The comment above is the array afterward, not that return value.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents