Answers for "python how to remove all elements in a list"

0

how to delete all elements of a list in python

characters = ["Eren Yeager", "Mikasa Ackerman", "Armin Arlert"]
del characters[:]

print(characters)
Posted by: Guest on January-22-2022

Code answers related to "python how to remove all elements in a list"

Browse Popular Code Answers by Language