mardi 24 janvier 2017

how to use 'or' correctly. - prints string after word

If I enter yes it will print y. if I enter no it will print y. How do I use or correctly?

#section 1

sentence = 'I AM TROLL??'
answer = input(do you want to print your sentence? y/n)
if answer == 'y' or 'yes':
    print(sentence)




Aucun commentaire:

Enregistrer un commentaire