dimanche 17 septembre 2017

Nested if with openxlpy

for status in sheet['E']:
   if status.value == 'completed':
      for price in sheet['G']:
         print(price.value)

It seems that if statement is not working because all of the price.value's are getting printed. What am I missing?

Aucun commentaire:

Enregistrer un commentaire