With this operation, you can delete one item from an array by value. This method accepts only one argument, value. After running this method, the array items are re-arranged, and indices are re-assigned.
The syntax is
arrayName.remove(value)
Example
Let’s remove the value of “3” from the array
import array as myarray first = myarray.array('b', [2, 3, 4]) first.remove(3) print(first)