DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to check if number is negative in python
num = -10 if num < 0: print(f"number you entered:{num} is negative")
PREVIOUS
NEXT
Tagged:
#check
#number
#negative
#python
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit