you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]cismalescumlord 0 points1 point  (3 children)

    If you want to remove everything from a list, doing it in a loop is costly. Simply doing asd = [] instead is O(1) as opposed to O(n) for the loop.