string = 'this string has digits 12345'
if any(char.isdigit() for char in string):
#digits found
print('"{}" has digits!'.format(string))
else:
#digits NOT found
print('"{}" does NOT have digits!'.format(string))
s = 'some string'
numbers = sum(c.isdigit() for c in s)
letters = sum(c.isalpha() for c in s)
spaces = sum(c.isspace() for c in s)
others = len(s) - numbers - letters - spaces