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
while due > 0:
print(f'Amount Due: {due}')
coin = int(input('Insert Coin: '))
if coin in [25, 10, 5]:
due -= coin
# Calculate change if any amount overpaid
if due < 0:
change = -due
else:
change = 0
print(f'Change Owed: {change}')
if name == "main":
main()
The text was updated successfully, but these errors were encountered:
coke
correct code
def main():
cost = 50
due = cost
if name == "main":
main()
The text was updated successfully, but these errors were encountered: