In Python remove() will remove the first occurrence of value in a list.
remove()
How to remove all occurrences of a value from a list?
This is w
p=[2,3,4,4,4] p.clear() print(p) []
Only with Python 3