Suppose I have a list of names, and I only need to delete one item without using indexes.
список.remove('элемент')
lst = ['a', 'b', 'c', 'd'] # удалим элемент со значением b lst.remove('b')
Source: https://ru.stackoverflow.com/questions/898604/More articles:How to disable the execution of an event when pressing a key, if setTimeout is setDateTime variable to bring in dbExplain the purpose of anonymous functions.Why not go to other pages?How to write multiple numbers in one row in an array [closed]Optimization of enumeration of all elements Dictionary What are the means to view a PDF fileHow to implement in QTreeView (PyQt5 library) double click with the left mouse button on an element?Unit testing asynchronous network methodsCustom authorization Spring REST APIAll Articles
список.remove('элемент')not satisfied? - strawdog