SyntaxFix
Write A Post
Hire A Developer
Questions
You could try:
alist[:] = []
Which means: Splice in the list [] (0 elements) at the location [:] (all indexes from start to finish)
[]
[:]
The [:] is the slice operator. See this question for more information.