Answers for "how to check if number not 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 "how to check if number not negative in python"

Python Answers by Framework

Browse Popular Code Answers by Language