Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

python isdigit negative

def is_digit(n):
    try:
        int(n)
        return True
    except ValueError:
        return  False

if is_digit(question):
   ....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #isdigit #negative
ADD COMMENT
Topic
Name
6+7 =