check if string is int in python code example Example: python check if string is number txt = "565543" x = txt.isnumeric()