0
Q:

a.isdigit(): for negatives

>>>'-6'.lstrip('-')
'6'
>>>'-6'.lstrip('-').isdigit()
True
1

Tags

New to Communities?

Join the community