You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cash = float(input(f'Please enter a value greater than or equal to R{total_amount} to pay for your products: '))
except ValueError as err:
print(err)
if cash < total_amount:
try:
void = str(input(f'The amount you paid R{cash} is less than the balance due R{total_amount}.\nWould you like to void this transaction?\nType (yes/no): '))
if void == 'yes':
print('It\'s sad to see you leave empty handed :(\n We hope to see you next time :)')