The clear Method in Python: Removing All Elements from a List
Remove all elements from a list. This method modifies the original list and returns None.
clear()
my_list = ["a", "b", "c"]
my_list.clear() # Returns None, but my_list is now []
This method is equivalent to the expression del my_list[:].