Loop through a list : List Loop : List PYTHON examples


PYTHON examples » List » List Loop »

 

Loop through a list


Loop through a list: for in

a = ['cat', 'window', 'defenestrate']

for x in a[:]: # make a slice copy of the entire list
    if len(x6: a.insert(0, x)
 
print a


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo List
» List Loop