Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #positive #negative #number #python
ADD COMMENT
Topic
Name
2+4 =