Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- destination = input()
- budget = input()
- saved_money = 0
- while destination != 'End':
- money = float(input())
- saved_money += money
- budget_float = float(budget)
- if saved_money >= budget_float:
- print(f'Going to {destination}!')
- saved_money = 0
- destination = input()
- budget = input()
Advertisement
Add Comment
Please, Sign In to add comment