こんにちは私はトラブルシューティングの質問プログラムで単語を見つけることについてここに質問があります。回答を出力する前にキーワードの質問をチェックするコンポーネントを追加するにはどうすればよいですか? Pythonのstringspythonで一致する単語
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")
キーワードは何ですか? – WhatsThePoint