If there's a value error I want this statement to return to the current question without starting over at the first question. Do I need to make 3 separate loops? What is the best way to approach this? Because if I had 100+ inputs, it could get messy!
while True:
    try:
        num_of_ppl = int(input("How many people? "))
        num_of_pizza = int(input("How many pizza's? "))
        num_of_slices_per_pizza = int(input("How many slice's per pizza? "))
    except ValueError:
        print("You must enter a whole number.\n")
        continue
    break
 
     
    