how to check if a string is a digit in pytohn code example
Example: pyton how to tell if string is a int or string
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False
def RepresentsInt(s):
try:
int(s)
return True
except ValueError:
return False