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

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 "how to remove all elements in list in python"

Browse Popular Code Answers by Language