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

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

11/20/2018 11:48:41 PM

Ahmad Ali

2 Answers

New Answer

+2

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

0

Thank you very much ❤️ it works.