+ 3

Can anyone write AI sample code using python??

14th May 2018, 9:52 AM
Santosh Kumar Reddy
Santosh Kumar Reddy - avatar
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")
17th May 2018, 4:12 AM
Rajeeb