Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num1, num2, num3 = map(lambda _: int(input()), range(3))
- def check_numbers(num1, num2, num3):
- if (num3 > 0 and num1 < 0 and num2 < 0) or \
- (num2 > 0 and num1 < 0 and num3 < 0) or \
- (num1 > 0 and num2 < 0 and num3 < 0) or \
- (num1 > 0 and num2 > 0 and num3 > 0):
- return "positive"
- elif num1 == 0 or num2 == 0 or num3 == 0:
- return "zero"
- elif num1 < 0 or num2 < 0 or num3 < 0:
- return "negative"
- print(check_numbers(num1, num2, num3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement