Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst = list(map(int, input().split(' ')))
- factor = int(input())
- lst = [x for x in lst if x * factor]
- happy = [x for x in lst if x >= sum(lst) / len(lst)]
- happy_or_not = '' if len(lst) <= len(happy) * 2 else ' not'
- print(f'Score: {len(happy)}/{len(lst)}. Employees are{happy_or_not} happy!')
Add Comment
Please, Sign In to add comment