Arshad Mehmood

Search the blog

    Check if string is numeric

    python1 min read

    Python makes it easy with isnumeric().

    str = "this2009";
    print str.isnumeric()
    str = "23443434";
    print str.isnumeric()