SHARE
TWEET

Salary

SpasSpasov May 25th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. salary = int(input())
  3.  
  4. financial_globe = 0
  5.  
  6. for i in range(0, n):
  7.     site = input()
  8.     if site == 'Facebook':
  9.         financial_globe = 150
  10.         salary = salary - financial_globe
  11.     if site == 'Instagram':
  12.         financial_globe = 100
  13.         salary = salary - financial_globe
  14.     if site == 'Reddit':
  15.         financial_globe = 50
  16.         salary = salary -financial_globe
  17. if salary <= 0:
  18.     print('You have lost your salary.')
  19. else:
  20.     print(f'{salary}')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top