Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num_of_tabs = int(input())
- salary = int(input())
- for i in range(num_of_tabs):
- open_tabs = input()
- if open_tabs == 'Facebook':
- salary -= 150
- elif open_tabs == 'Instagram':
- salary -= 100
- elif open_tabs == 'Reddit':
- salary -= 50
- else:
- salary = salary
- if salary <= 0:
- print("You have lost your salary.")
- break
- if salary > 0:
- print(salary)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement