python check if strings are digits code example Example: python check if string is number txt = "565543" x = txt.isnumeric()