Answers for "pyton how to tell if string is a int or string"

0

pyton how to tell if string is a int or string

def RepresentsInt(s):
    try: 
        int(s)
        return True
    except ValueError:
        return False
Posted by: Guest on March-22-2020

Code answers related to "pyton how to tell if string is a int or string"

Python Answers by Framework

Browse Popular Code Answers by Language