mylist = [1, 2, 3, 4]
mylist.clear()
print(mylist)
# []
#
my_list = ['one ', ' tow', 'three']
my_list = list(map(str.strip, my_list))
print(my_list) # ['one', 'tow', 'three']
# this clear whole elements from list
thislist = ["apple", "banana", "cherry"]
thislist.clear()
characters = ["Eren Yeager", "Mikasa Ackerman", "Armin Arlert"]
del characters[:]
print(characters)
yourlist.clear()
l = [1,2,3,4]
l.clear()
clear()