Answers for "a.isdigit(): for negatives"

2

a.isdigit(): for negatives

>>>'-6'.lstrip('-')
'6'
>>>'-6'.lstrip('-').isdigit()
True
Posted by: Guest on July-30-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language