lundi 29 février 2016

How can I make an if statement that recognizes whether or not my input appears in a list?

That is what I have so far and it doesn't work, I am new to Python so sorry if there is a really obvious mistake that I don't see :)

Quotes = ['Iron and Blood' , 'No Quote Available' ]   
Blood=Quotes[0]
Else=Quotes[1]

Name = raw_input('Who do you want this humble AI to quote?')
if Name == Bismark:
    print(Blood)

Aucun commentaire:

Enregistrer un commentaire