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