why for loop print only once after add if statement

jobmattcon at gmail.com jobmattcon at gmail.com
Sat May 28 06:19:10 EDT 2016


for item, i in enumerate(aa)
  print item

this writing, it can print all values

for item, i in enumerate(aa)
  if item == findit:
    print item

this only print the first value, means it only print once then not print again,

where is wrong?




More information about the Python-list mailing list