Introduction: Python Tutorials: Creating a Simple Python AI
Step 1: The Code
After opening a blank python file, type the following code:
--- = tab
---userInput = input(">>> ")
---if userInput in ['hi', 'HI', 'Hi']:
------print("I did not understand what you said")
This can be extended with elif statements and eventually you will eventually have your very own slightly clever AI. Just make sure that the else statement is always at the bottom of your code
We have a be nice policy.
Please be positive and constructive.