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