How to Remove Items From Lists in Python - Real Python
Briefly

To effectively remove items from a list in Python, one can utilize various methods such as .pop(), .remove(), and the del statement, each serving a unique purpose.
The .remove() method specifically targets and deletes the first occurrence of a specified value from a list, making it essential for managing item values.
Using .pop() allows you to remove an item from a list by its index while returning the value, providing flexibility in list manipulation.
To entirely clear a list of its items, utilizing the .clear() method is the most efficient approach, negating the need for looping through items individually.
Read at Realpython
[
|
]