how to find if a character is an int in python code example Example: test if character is number python string >>> 'A'.isdigit() False >>> '1'.isdigit() True