Shell/Bash: a.isdigit(): for negatives Example

By

Shell/Bash Example: This is the "a.isdigit(): for negatives" Example. compiled from many sources on the internet by SimpleTutorials.org

a.isdigit(): for negatives

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



* Summary: This "a.isdigit(): for negatives" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others