mercredi 4 mars 2015

How can i make my python3 code do many "if input" operations at once

I tried make an AI just to see if i could, i couldn't. but i want it to at least work. Here's my code:



if True:
if input(":") == "hello":
print("Hello.")
if input(":") == "good bye":
print("Bye!")
if input(":") == "how are you":
print("Good, i don't feel much. You know, I'm an AI.")


if you run it you see that it does not what an AI would do.


Aucun commentaire:

Enregistrer un commentaire