안녕하세요 문제 해결 질문 프로그램에서 단어를 찾는 것에 대해 질문이 있습니다. 어떻게 답변을 출력하기 전에 핵심어에 대한 질문을 확인할 구성 요소를 추가 할 수 있습니까? 파이썬 strings파이썬에서 일치하는 단어
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