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