Arshad Mehmood

Search the blog

    Today I Learned

    Check if string is numeric

    python

    Python makes it easy with isnumeric().

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