Answer to Question #315142 in Python for manohar

Question #315142

write a program to find if a given number is positive or negative in python


1
Expert's answer
2022-03-21T12:36:00-0400
# Enter the number
a = int(input(" Enter the number: "))

if a < 0:
    print("It is negative. ")
else:
    print("It is positive. ")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS