dimanche 9 août 2015

python: i'm having problems the 'and' in the if statement [duplicate]

This question already has an answer here:

What can I do?

print("wellcome to samart present continuous")
input_var = input("Enter base verb: ")
if input_var[-1] == "e":
    print (input_var[:-1]+"ing")

if input_var[-1] != ("a"or"e"or"i"or"o"or"u") and input_var[-2] ==("a"or"e"or"i"or"o"or"u") :
        print (input_var + input_var[-1] + "ing")

Aucun commentaire:

Enregistrer un commentaire