+ 3
Can anyone write AI sample code using python??
2 Respostas
0
sample AI
After opening a blank python file, type the following code:
--- = tab
while True:
---userInput = input(">>> ")
---if userInput in ['hi', 'HI', 'Hi']:
------print("Hello")
---else:
------print("I did not understand what you said")