Python Program to Check if a Number is Positive, Negative or 0
num= float(input("Enter a Number: "))
if num>=0:
if num==0:
print("Zero")
else:
print("Positive number")
else:
print("Negative number")
Output Below:

num= float(input("Enter a Number: "))
if num>=0:
if num==0:
print("Zero")
else:
print("Positive number")
else:
print("Negative number")
Join our newsletter and get resources, curated content, and design inspiration delivered straight to your inbox.
User Defined Functions in Python Introduction to User Defined Functions In the...
This article, it's very useful and collage or github Python projects with references and source code, the best Python projects, simple calculators, alarm clocks, quiz applications, weather applications, tic tac toe, calculators, contact books, notification apps, typing speed test.
To determine whether a number is odd or even in Python, you...