how to check if something is a whole number in python code example Example: python check if string is number txt = "565543" x = txt.isnumeric()