Virtual assistant example | Sololearn: Learn to code for FREE!


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

11/20/2018 11:48:41 PM

Ahmad Ali

2 Answers

New Answer


You need to capture and analyze input, try something like your_input = input() if your_input in ["Hi", "Hello"]: print(b)


Thank you very much ❤️ it works.