Advertisement
Kaloyankerr

05. Traveling

Aug 21st, 2020
1,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. while True:
  2.     destination = input()
  3.     if destination == 'End':
  4.         break
  5.     budget = float(input())
  6.     money = 0
  7.     while money < budget:
  8.         money += float(input())
  9.     print(f"Going to {destination}!")
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement