Python Code

Python Program to Check if a Number is Positive, Negative or 0

Less than a minute to read

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:


Leave a Reply

Your email address will not be published. Required fields are marked *

Sign up for our Newsletter

Join our newsletter and get resources, curated content, and design inspiration delivered straight to your inbox.

Related Posts