Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
a.isdigit(): for negatives
madLokesh
Programming language:
Shell/Bash
2021-06-08 22:27:33
0
Q:
a.isdigit(): for negatives
Prerna Jain
Code:
Shell/Bash
2021-02-28 06:55:55
>>>'-6'.lstrip('-') '6' >>>'-6'.lstrip('-').isdigit() True
1
Tags
git
digit
New to Communities?
Join the community