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

7

how to clear all elements in a list python

# this clear whole elements from list
thislist = ["apple", "banana", "cherry"]
thislist.clear()
Posted by: Guest on May-17-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language