desislava_topuzakova

05. Travelling

Oct 21st, 2020
838
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. destination = input()
  2.  
  3. while destination != 'End':
  4.     min_budget = float(input())
  5.     money = float(input())
  6.     saved = 0
  7.     saved += money
  8.     while saved < min_budget:
  9.         money = float(input())
  10.         saved += money
  11.     if saved >= min_budget:
  12.         print(f'Going to {destination}!')
  13.     destination = input()
RAW Paste Data