How to remove element by value from int array with Python

1 Answer

0 votes
from array import array

arr = array("i")

arr.append(34)
arr.append(2)
arr.append(65)
arr.append(987)

arr.remove(65)

print(arr)


'''
run:

array('i', [34, 2, 987])

'''

 



answered Oct 27, 2018 by avibootz

Related questions

2 answers 234 views
1 answer 131 views
1 answer 152 views
3 answers 253 views
1 answer 174 views
...