def get_input_values(currency_amt):
    """Main logic of the program that tallies the value of each entered
    coin. Validation on the values entered is also performed.
    """
    quarter = 25
    dime = 10
    nickel = 5
    penny = 1
    total_amt = 0
    total_quarters = 0
    total_dimes = 0
    total_nickels = 0
    total_pennies = 0

    print('Enter change in the form of (25 = quarter, 10 = dime,'
          ' 5 = nickel, 1 = penny)')
    coin_value = input('Enter coin amount: ')

    while len(coin_value) > 0:        
        try:
            coin_amt = int(coin_value)
            if not coin_amt not in (quarter, dime, nickel, penny):
                if coin_amt < currency_amt or coin_amt < total_amt:
                    if (coin_amt + total_amt) <= currency_amt:
                        if (coin_amt + total_amt) != currency_amt:
                            if coin_amt == 25:
                                total_quarters += 1
                                total_amt += quarter
                            elif coin_amt == 10:
                                total_dimes += 1
                                total_amt += dime
                            elif coin_amt == 5:
                                total_nickels += 1
                                total_amt += nickel
                            elif coin_amt == 1:
                                total_pennies += 1
                                total_amt += penny
                            else:
                                print('This is not a valid amount!\n')
                            print('Enter change in the form of (25 = quarter,'
                                  ' 10 = dime,  5 = nickel, 1 = penny)')
                            coin_value = input('\nEnter coin amount: ')
                        else:
                            if coin_amt == 25:
                                total_quarters += 1
                            elif coin_amt == 10:
                                total_dimes += 1
                            elif coin_amt == 5:
                                total_nickels += 1
                            elif coin_amt == 1:
                                total_pennies += 1
                            break
                    else:
                        print('You have entered more than I currently have'
                              ' totalled up!')
                        print('\nI currently have a total of .{0} and need to get to .{1}'
                              .format(str(total_amt), str(currency_amt)))
                        print('Enter change in the form of (25 = quarter,'
                              ' 10 = dime,  5 = nickel, 1 = penny)')
                        coin_value = input('\nEnter coin amount: ')
                else:
                    if (coin_amt + total_amt) > currency_amt:
                        print('You entered more than what I need')
                        print('Enter change in the form of (25 = quarter,'
                              ' 10 = dime,  5 = nickel, 1 = penny)')
                        coin_value = input('\nEnter coin amount: ')

                    if (coin_amt + total_amt) != currency_amt:
                        print('\nEnter change in the form of (25 = quarter,'
                              ' 10 = dime,  5 = nickel, 1 = penny)')
                        coin_value = input('\nEnter coin amount: ')
                    else:
                        if coin_amt == 25:
                            total_quarters += 1
                        elif coin_amt == 10:
                            total_dimes += 1
                        elif coin_amt == 5:
                            total_nickels += 1
                        elif coin_amt == 1:
                            total_pennies += 1
                        break
            else:
                print('This is not a valid amount!\n')
                print('\nEnter change in the form of (25 = quarter,'
                      ' 10 = dime,  5 = nickel, 1 = penny)')
                coin_value = input('\nEnter coin amount: ')
        except ValueError:
            print('This is not a valid amount!')
            coin_value = input('\nEnter coin amount: ')

    currency_totals = (total_quarters, total_dimes, total_nickels,
                       total_pennies)
    return currency_totals
Main logic of the program that tallies the value of each entered
    coin. Validation on the values entered is also performed.
    
recipes/Python/578988_Money_Game/recipe-578988.py