# Assigns all variables as false to allow for loops
drink = False
size = False
name = False
flavour = False
flavourPrice = 0.00
sizePrice = 0.00


while name == False:
    # Get user's name
    nameInput = input('Could you input your first name to get started? ')
    # Validate it is a name, if false it will loop back to start
    if nameInput.isalpha():
        name = nameInput
        # Now that the variable is assigned, it is no longer false, breaking the loop
    else:
        print('Either you put in your last name as well or that\'s not a name!')

print('Hello',name)

while drink == False:
        drinkInput = input('What would you like to drink? Coffee or tea? ')
        # Checks that the input is valid. Is not case sensitive
        if drinkInput.lower() == "c" or drinkInput.lower() == "coffee":
                # Assigns the beverage type
                drink = "coffee"
                # Now that the variable is assigned, it is no longer false, breaking the loop
        elif drinkInput.lower() == "t" or drinkInput.lower() == "tea":
                # Assigns the beverage type
                drink = "tea"
                # Now that the variable is assigned, it is no longer false, breaking the loop
        else:
            print('Sorry we do not carry that here ')
while size == False:
        sizeInput = input('Would you like a small, medium, or large? ')
        # Checks that the input is valid. Is not case sensitive
        if sizeInput.lower() == "s" or sizeInput.lower() == "small":
            # Assigns the size as well as the price associated with it
            size = "small"
            sizePrice = 1.50
            # Now that the variable is assigned, it is no longer false, breaking the loop
        elif sizeInput.lower() == "m" or sizeInput.lower() == "medium":
            size = "medium"
            sizePrice = 2.50
            # Now that the variable is assigned, it is no longer false, breaking the loop
        elif sizeInput.lower() == "l" or sizeInput.lower() == "large":
            size = "large"
            sizePrice = 3.25
            # Now that the variable is assigned, it is no longer false, breaking the loop
        # will loop until input is valid
        else:
            print('Sorry we do not have that size')
# Offers flavouring depending on what drink was chosen
if drink == "tea":
    print('We offer lemon and mint flavouring, or you can have none.')
    while flavour == False:
        flavourInput = input('What would you like? ')
        # Checks that the input is valid. Is not case sensitive
        if flavourInput.lower() == "" or flavourInput.lower() == "none":
            # Assigns flavour and price. Used "no" so it fits in the printed string later
            flavour = "no"
            flavourPrice = 0.00
            # Now that the variable is assigned, it is no longer false, breaking the loop
        elif flavourInput.lower() == "m" or flavourInput.lower() == "mint":
            flavour = "mint"
            flavourPrice = 0.50
            # Now that the variable is assigned, it is no longer false, breaking the loop
        elif flavourInput.lower() == "l" or flavourInput.lower() == "lemon":
            flavour = "lemon"
            flavourPrice = 0.25
            # Now that the variable is assigned, it is no longer false, breaking the loop
        # will loop until input is valid
        else:
            print('Sorry we do not have that')
if drink == "coffee":
    print('We offer vanilla, chocolate, and maple flavouring, or you can have none.')
    while flavour == False:
        flavourInput = input('What would you like?')
        if flavourInput.lower() == "" or flavourInput.lower() == "none":
            # Assigns flavour and price associated with it. Used "no" so it fits in printed statement at the end
            flavour = "no"
            flavourPrice = 0.00
            # Now that the variable is assigned, it is no longer false, breaking the loop

        elif flavourInput.lower() == "c" or flavourInput.lower() == "chocolate":
            flavour = "chocolate"
            flavourPrice = 0.75
            # Now that the variable is assigned, it is no longer false, breaking the loop

        elif flavourInput.lower() == "v" or flavourInput.lower() == "vanilla":
            flavour = "vanilla"
            flavourPrice = 0.25
            # Now that the variable is assigned, it is no longer false, breaking the loop
        elif flavourInput.lower() == "m" or flavourInput.lower() == "maple":
            flavour = "maple"
            flavourPrice = 0.50
            # Now that the variable is assigned, it is no longer false, breaking the loop
        # will loop until input is valid
        else:
            print('Sorry we do not have that')
# Calculates the price based on what was inputed
price = ((flavourPrice + sizePrice)*1.11)
# prints the order
print(name,", you're", size, drink, "with",flavour,"flavouring will be $%.2f" %(price))

