Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make a program that identifies positives and negatives in python


number = float(input(" Please Enter any Numeric Value : "))

if(number > 0):
    print("{0} is a Positive Number".format(number))
elif(number < 0):
    print("{0} is a Negative Number".format(number))
else:
    print("You have entered Zero")
Comment

positive and negative number in python

num = float(input("Enter a number: "))
if num > 0:
   print("Positive number")
elif num == 0:
   print("Zero")
else:
   print("Negative number")
Comment

PREVIOUS NEXT
Code Example
Python :: convert python datetime to string 
Python :: dataframe delete duplicate rows with same column value 
Python :: access google transalte pandas 
Python :: http server 
Python :: python read entire file 
Python :: xor string python 
Python :: python docstring example 
Python :: union dataframe pyspark 
Python :: django.db.utils.ProgrammingError: relation "users" does not exist in django 3.0 
Python :: NumPy unique Syntax 
Python :: qrcode.make python 
Python :: change matplotlib fontsize 
Python :: split a variable into multiple variables in python 
Python :: delete one pymongo 
Python :: connect spark to postgres; connect spark to database 
Python :: tensor get value 
Python :: repeat array along new axis 
Python :: run linux command using python 
Python :: python for loop with increment 
Python :: pandas max columns 
Python :: numpy stack arrays vertically 
Python :: python create folder 
Python :: hasattr in python 
Python :: python string slicing 
Python :: Python pandas first and last element of column 
Python :: matplotlib increase tick frequency 
Python :: how to play video in colab 
Python :: root mean squared error python 
Python :: how to use pafy 
Python :: pandas replace nan with mean 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =