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