if user_input.lower() == 'take loan': amount = input( f'You can take a loan up to: {acc.max_loan}\nAmount?>> ') try: acc.take_loan(int(amount)) print(acc.check_loan()) except ValueError: print( f'Please specify the amount.\n{amount} is not a recognized value' ) if user_input.lower() == 'pay loan': amount = input(f'Your debt is: {acc.loan}\nAmount to pay?>> ') try: acc.pay_loan(int(amount)) print(acc.check_loan()) except ValueError: print( f'Please specify the amount.\n{amount} is not a recognized value' ) # Test game to delete after if user_input.lower() == 'test': while True: bet = input(f'How much to bet>> ') choice = input(f'even or odd?\n>> ') if choice == 'odd' or choice == 'even': game = cho_han(bet, choice) acc.money += int(game) cont = input('Continue?(y/n)\n>> ')