Python program to check if a number is Positive or Negative

By: Editorial Staff | Last Updated: | In: Python Programming


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.

Share this post!


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari