remove an element from an array by matching value python code example Example: delete element from matrix python array.remove(40)