How can I ignore the \"not in list\" error message if I call a.remove(x) when x is not present in list a?
a.remove(x)
x
a
This is my situation:
you have typed wrong input. syntax: list.remove(x)
and x is the element of your list. in remove parenthesis ENTER what already have in your list. ex: a.remove(2)
i have entered 2 because it has in list. I hape this data help you.