0
Q:

pyton how to tell if string is a int or string

def RepresentsInt(s):
    try: 
        int(s)
        return True
    except ValueError:
        return False
0

Tags

New to Communities?

Join the community