Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def multipl_sign(num1, num2, num3):
- num_list = [num1, num2, num3]
- if len(list(filter(lambda x: x == 0, num_list))) >= 1:
- return "zero"
- elif len(list(filter(lambda x: x < 0, num_list))) == 1 or len(list(filter(lambda x: x < 0, num_list))) == 3:
- return "negative"
- elif len(list(filter(lambda x: x > 0, num_list))) == 1 or len(list(filter(lambda x: x > 0, num_list))) == 3:
- return "positive"
- number1 = int(input())
- number2 = int(input())
- number3 = int(input())
- print(multipl_sign(number1, number2, number3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement