A.isdigit (): dla negatywów

>>>'-6'.lstrip('-')
'6'
>>>'-6'.lstrip('-').isdigit()
True
Jittery Jay