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 264 views
1 answer 144 views
1 answer 164 views
3 answers 269 views
1 answer 188 views
...