Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

a.isdigit(): for negatives

>>>'-6'.lstrip('-')
'6'
>>>'-6'.lstrip('-').isdigit()
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #negatives
ADD COMMENT
Topic
Name
7+6 =