Hallo Ich habe hier eine Frage über das Finden von Wörtern in einem Problem-Frageprogramm. Wie kann ich eine Komponente hinzufügen, die die Fragen nach Schlüsselwörtern prüft, bevor die Antworten ausgegeben werden?passende Wörter in Python
print ("Introduction Text")
print ("Explanation of how to answer questions")
Q1 = input ("Is your phone Android or Windows?")
if Q1 == "yes":
print ("go to manufacturer")
if Q1 == "no":
print ("next question")
Q2 = input ("Is your screen cracked or broken?")
if Q2 == "yes":
print ("Replace Screen")
if Q1 == "no":
print ("next question")
Q3 = input ("Does the handset volume turn up and down?")
if Q1 == "no":
print ("replace Hardware")
print ("contact Manufacturer")
if Q1 == "yes":
print ("next question")
Was sind die Schlüsselwörter? – WhatsThePoint