Answers for "check if a number is positive or negative in python"

2

how to check if number is negative in python

num = -10

if num < 0:
  print(f"number you entered:{num} is negative")
Posted by: Guest on June-25-2021

Code answers related to "check if a number is positive or negative in python"

Python Answers by Framework

Browse Popular Code Answers by Language