Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = [int(x) for x in input().split()]
- negative = sum(filter(lambda x: x < 0, numbers))
- positive = sum(filter(lambda x: x>= 0, numbers))
- print(negative)
- print(positive)
- if abs(negative) > positive:
- print('The negatives are stronger than the positives')
- else:
- print('The positives are stronger than the negatives')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement