Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
pyton how to tell if string is a int or string
Christian
Programming language:
Whatever
2021-05-16 18:59:52
0
Q:
pyton how to tell if string is a int or string
tucna
Code:
Whatever
2021-06-15 01:29:45
def RepresentsInt(s): try: int(s) return True except ValueError: return False
0
Tags
string
int
how
New to Communities?
Join the community