I am trying to create a loop until the correct input is inputted but if a wrong answer is inputted, the code loops around the "print ("Invalid input, check spelling error")" forever. What am I supposed to do so that the entire code repeats again re-asking for an input?
count = 0
while count == 0  :
    if ChosenProcessor == ("p3"):
        PCPrice = PCPrice + 100 
        count = count + 1
    elif ChosenProcessor == ("p5"):     
        PCPrice = PCPrice + 120
        count = count + 1
    elif ChosenProcessor == ("p7"):
        PCPrice = PCPrice + 200
        count = count + 1
    else:
        print ("Invalid input, check spelling error")
This is my first question ever so my apologies if its pretty pointless or already asked. If it is asked I would also appreciate a link or the title to that question.
 
    