Answers for "know if a string is a number or not python"

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 "know if a string is a number or not python"

Python Answers by Framework

Browse Popular Code Answers by Language