SyntaxFix
Write A Post
Hire A Developer
Questions
To delete all objects in a list, you can directly write list = []
list = []
Here is example:
>>> a = [1, 2, 3] >>> a [1, 2, 3] >>> a = [] >>> a []