Python program to check if a number is Positive or Negative

In today’s tutorial, we are going to share a Python program to check if a number is Positive or Negative. If you are a python beginner and want to start learning the python programming, then keep your close attention in this tutorial as I am going to share a Python program to check if a number is Positive or Negative.

Ses the below number series from which we will check if a number is positive, negative or zero.

Python program to check if a number is Positive or Negative with the output

Copy the below python program and execute it with the help of python compiler. At the end of this tutorial, We have shared the output of below program.

Program:

Output:

#first try
Enter a number: -8
-8.0 is negative number
#second try
Enter a number: 9
9.0 is a positive number
#third try
Enter a number: 0.0 is zero

Liked this program? Do Like & share with your friends.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.