Python Language Arrays Remove last array element using pop() method

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


pop removes the last element from the array. Here is an example :

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

So we see that the last element (5) was popped out of array.

Got any Python Language Question?