KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there any reason to do anything more complicated than one of these two lines when you want to clear a list in Python? old_list = [] old_list = list() The reason I ask is that I just saw this in some running code: del old_list[ 0:len(old_list) ]
Tags (comma-separated)
Save Edits
Cancel