How to remove the last element from array in Python

1 Answer

0 votes
from array import array

int_array = array('i', [0, 11, 22, 33, 44, 55])

int_array.pop()

print(int_array)


'''
run:

array('i', [0, 11, 22, 33, 44])

'''

 



answered Dec 23, 2017 by avibootz
...