Python ProgrammingPython Programming

How to delete or truncate list in Python?

The clear() method truncate the list and del() keyword delete the list.
testList = ["Canada", "Japan", "London", "Germany"]
testList.clear()
print(testList)
 
del testList