Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

While Loop Python Range Staying Constant Despite Shrinking List

l = ["a", "b", "c", "d", "e", "f"]
i=0
while i <len(l):
    print(i)
    l.pop(i)
 
PREVIOUS NEXT
Tagged: #While #Loop #Python #Range #Staying #Constant #Despite #Shrinking #List
ADD COMMENT
Topic
Name
8+9 =