Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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")
 
PREVIOUS NEXT
Tagged: #program #identifies #positives #negatives #python
ADD COMMENT
Topic
Name
1+2 =