For loop with a variable upper bound : i wanted to make a for loop in python with a variable upper bound which is the length of list, the size of which is modified inside the loop. like this :

    l = [1,2,3,4,5,6]
    for i in range(len(l)):
        del l[i]
thank you


