I need a validation loop, I don't want the program to move to the next line without the validation. This is just a rough script. In all whatever the program maybe I want it to validate an individual input and keep looping back if the correct information or typo is written.
choice = ['A','E','C']
size = ['S','L','M']
drinkChoice = input('Enter drink choice here ')
drinkSize = input('Enter drink size ')
while True:
if drinkChoice not in choice:
print('choose from the available choices A,E,C')
drinkChoice = input('Enter drink choice here ')
if drinkSize not in size:
print('Please chose M, L and S are the choices')
drinkSize = input('Enter drink size ')
continue
else:
#THIS IS JUST A TEST
print('You order total is')
break