Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- employess_happiness = [int(num) for num in input().split()]
- factor = int(input())
- calculated_happiness = [num * factor for num in employess_happiness]
- happy_employess = [el for el in calculated_happiness if el >= sum(calculated_happiness) / len(calculated_happiness)]
- if len(happy_employess) >= len(calculated_happiness) // 2:
- print(f"Score: {len(happy_employess)}/{len(calculated_happiness)}. Employees are happy!")
- else:
- print(f"Score: {len(happy_employess)}/{len(calculated_happiness)}. Employees are not happy!")
Advertisement
Add Comment
Please, Sign In to add comment