In Python3, how can I remove an array element? I have tried, like this:
In [1]: arr=[13,14,67,23,9]
In [2]: arr.remove(2)
I want to remove the 3rd position element but it's throwing this error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-50-67be49ced0b0> in <module>()
----> 1 arr.remove(2)
ValueError: list.remove(x): x not in list