BbJLeB

06. Travelling

Jun 3rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # 06. Travelling
  2.  
  3. while True:
  4.     destination = input()
  5.  
  6.     if destination == "End":
  7.         break
  8.     budget = float(input())
  9.  
  10.     money = 0
  11.     while money < budget:
  12.         current_sum = float(input())
  13.         money += current_sum
  14.     print(f"Going to {destination}!")
Add Comment
Please, Sign In to add comment