clear method

clear()

Removes all elements from this collection.

def clear(self):
    ...

See Also