need help on my code (im not that good at coding) : I am currently working on this code:

import time
import webbrowser

while True:
    user_inputq3 = raw_input("Which model of phone is it? ")  
    import csv  
    words=user_inputq3.split(" ")  
    reader=csv.reader(open("task3worksheet.csv"))  
    problemlist=[row for row in reader]  
    for x in range(0,len(words)):  
        for y in range(0,len(problemlist)-1,2):  
            if(words[x].lower() in problemlist[y]):  
                print(problemlist[y+1][0])  
                break  
            elif user_inputq3 == "exit":  
                print("The programme will now shut down.")  
                time.sleep(5)  
                exit(0)  
                break  
            else:  
                print("This troubleshooting programme will only support iPhone 3-7.")  
                print("Make sure you type in iphone then the model of iPhone. (e.g iphone4)")  
                print("If you do not have these versions of the iPhone, please type in exit when prompted with the question again.")  
                break  

The "task3worksheet" is a excel worksheet which is full of keywords and a response. So for example when "iphone4" is typed, "next question" should come up. However, when I type in "iphone4", it says next question and loops back to the question again. How do I make it so that it doesnt move back to the question again, I want it so the current loop ends when the valid input is entered, so I can move on to other code. Thank you. (Obviously the code is structured properly in python, just imagine it is structured with proper spacing, thanks).

