lundi 16 juillet 2018

while function not executing under Else statement in python

 x=15
>>> if x==10:
    print ("not bad")
elif x==11:
    print ("good")
elif x==12:
    print ("best")
else:
    while x==30:
        x+=1
        print(x)

Aucun commentaire:

Enregistrer un commentaire