dimanche 27 mai 2018

Python if-else statements

I have this:

 if (...some text...):
     ...some text...
 elif flag:
     if num >= 2:
         f.write('one')
         if num >= 10:
             flag = False

but this doesn't work. After "elif" there is something happening and code doesn't work right. What should I change?

Aucun commentaire:

Enregistrer un commentaire