How to know if a string is a number python code example
Example: How to know if a string is a number python
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False