clear method

clear(self)

Removes all elements from the collection.

def clear(self):
    ...

See Also