Can anyone write AI sample code using python?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can anyone write AI sample code using python??

14th May 2018, 9:52 AM
Santosh Kumar Reddy
Santosh Kumar Reddy - avatar
2 Answers
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