SyntaxFix
Write A Post
Hire A Developer
Questions
Another way of doing so is:
while i<len(your_list): if #condition : del your_list[i] else: i+=1
So, you delete the elements side by side while checking