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 251 views
1 answer 136 views
1 answer 158 views
3 answers 263 views
1 answer 182 views
...