Positive, Negative or Zero
Completed
Read an integer and print positive, negative or zero.
Input
One integer.
Output
One word.
Example
Input
5
Output
positive
Editor
Python
Hints
Use elif for the second condition.
Solution explanation
elif chains are checked top to bottom; only the first true branch runs.
Show solution
n = int(input())
if n > 0:
print("positive")
elif n < 0:
print("negative")
else:
print("zero")