0

Virtual assistant example

I have two groups of data (a= hi, hello) (b= hi, how, can, i, help). I need to code a program if i wrote hi or hello will reply to me : hello how can I help. In python language

20th Nov 2018, 11:48 PM
Ahmad Ali
Ahmad Ali - avatar
2 odpowiedzi
+ 2
You need to capture and analyze input, try something like your_input = input() if your_input in ["Hi", "Hello"]: print(b)
23rd Nov 2018, 12:06 AM
Otterwerks
Otterwerks - avatar
0
Thank you very much ❤️ it works.
23rd Nov 2018, 7:39 AM
Ahmad Ali
Ahmad Ali - avatar