Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 07. Salary
- n = int(input())
- salary = int(input())
- facebook = 150
- instagram = 100
- reddit = 50
- amercement = 0
- for i in range(n):
- website = input()
- if website == "Facebook":
- salary -= facebook
- elif website == "Instagram":
- salary -= instagram
- elif website == "Reddit":
- salary -= reddit
- if salary == 0:
- print(f"You have lost your salary.")
- break
- else:
- print(f"{salary}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement