I am having an issue with my index errors. This code below basically asks the customer to enter the corresponding number to their pizza choice (a list of pizzas with their index number is printed before this.) I want to make it so if the customer enters a number higher than 12 which is the highest pizza number on the list, it will ask you to Enter the corresponding number again, if that makes sense. I heard you could use try except errors but I don't really know how.
pizzaItem = int(input("Please enter the corresponding number to your pizza choice: "))
print("You have added", pizzaMenu[pizzaItem] , "to your order")
pizzaOrder.append(pizzaMenu[pizzaItem])
while len(pizzaOrder) != customerPizzaNumber:
pizzaItem = int(input("Please enter the corresponding number to your pizza choice: "))
print("You have added", pizzaMenu[pizzaItem] , "to your order")
pizzaOrder.append(pizzaMenu[pizzaItem])
print(" ")
print("Thanks for chosing your pizzas. Here is your current order:")