Check Number is Positive or Negative in Python

Hi Guy's, Here is the article to check weather any number is positive or negative and zero. if a number greater than zero then number is positive, if a number is less than zero then number is negative. zero is neither a positive nor negative. so , if users enter zero then output display entered number is zero.
Code Explanation:

Here, i have taken one integer variables n.
n = int (input ('Enter Any Number : ')) : At here " Enter First Number : " that display into output screen.
since here i am using input method so whatever we enter that accept into string and after applying int typecasting that convert 
into integer and store value into n.
if n >= 0 : suppose user enter greater value then cursor move inside of upper if.
if n == 0 : if user enter 0 then output display , Entered Number is zero , condition false
else print number is negative.
                                              Happy Coding... Thanks.
Previous
Next Post »