lundi 18 avril 2016

why is my if else statement incorrect?

I am just getting myself used to if else statements in python yet I have some trouble trying to get mine to work, what exactly is happening?

x = input("Enter your string")
while not set(x).issubset({'m', 'u', 'i'}):
    print("false")
    x = input("Enter your string")
else:
    print("Your String is " + x)
Question = int(input("Which rule would you like to apply? enter numbers 1-4: "))
if Question is 1:
    print("hello")
    '''issue arises in the else area below'''
else if Question is not 1:
        print("other")

Aucun commentaire:

Enregistrer un commentaire