Advertisement
aneliabogeva

Travelling

May 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. destination = input()
  2.  
  3. while destination != "End":
  4. needed_money = float(input())
  5. saved_money = 0
  6. while saved_money <needed_money:
  7. currently_saved_money = float(input())
  8. saved_money += currently_saved_money
  9. print(f"Going to {destination}!")
  10. destination = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement