num = float(input("Enter a number: "))

if num > 0:

print("Positive number")

elif num == 0:

print("Zero")

else:

print("Negative number")

Positive number

if num > 0:

print("Positive number")

elif num == 0:

print("Zero")

else:

print("Negative number")

## Output:

Enter a number: 2Positive number

ReplyDeletenice article for beginners.thank you.

javacodegeeks

welookups python