Enter a number to find if a number is positive or negative - DS301222

num = int(input("Enter a number: "))
if num > 0:
print(“Number is positive”)
elif num == 0:
print(“Number is zero”)
else:
print(“Number is negative”)

4 Likes

Great work @sameerchoudhary77 !

Try this code using def method @sameerchoudhary77

1 Like