I want to make a program that remembers something and can show it later on - like A.I.
First, I will show the program the question, like "How are you today?" and I also teach it the answer "Fine , you?", something like that.
Second, when I ask the program "How are you today?" or "How are you?", it should know the answer.
So far, I have this:
print ("Salut ! Am nevoie de ajutorul tau sa invat cateva propozitii...")
print ("Crezi ca ma poti ajuta ?")
answer1 = input("da/nu")
if (answer1=="da"):
print ("Bun , acum tu poti sa pui intrebarea si raspunsul")
print ("Spre exemplu , Primul lucru la inceput de linie trebuie sa fie intrebarea urmata de *?* ")
print ("Apoi , raspunsul pe care eu trebuie sa il dau.")
print ("Exemplu : Intrebare= Ce faci ? Raspuns= Bine , mersi :D")
question= "asd"
while (question != "stop"):
question = input("The question: ")
answer = input("The answer= ")
What should I do to be able to store the question, the answer for the respective question, then, when I input something like "Password" or any specific word to be able to test if it knows to reply my questions?