Home > other >  ValueError: list. Remove (x) : x is not in the list
ValueError: list. Remove (x) : x is not in the list

Time:04-14

In use for traversal to remove a list element, an error ValueError: list. Remove (x) : x is not in the list is how to return a responsibility

CodePudding user response:

Prompt you to delete the element is not in the list,

CodePudding user response:



Prompt to delete the element is not in the list, if you're sure you delete the elements in the list, that is type is wrong, wrong type, are mostly out of the methods used by when you delete, for example, you delete 2, but you delete written "2", it is regarded as a string, and 2 in the list was a plastic,
  • Related