isdigit for string python code example Example 1: python isdigit my_char.isdigit() Example 2: isdigit python string.isdigit() how to remove a integer from a string