Answers for "python clear list or create a new one"

1

how to clear the list in python

thislist = ["apple", "banana", "cherry"]
thislist.clear()
print(thislist)
Posted by: Guest on December-24-2021

Code answers related to "python clear list or create a new one"

Python Answers by Framework

Browse Popular Code Answers by Language