import timeit
timeit.timeit("contains_digits('0798237 sh 523-123-asdjlh')",
    'from __main__ import contains_digits')
timeit.timeit("contains_digits_any('0798237 sh 523-123-asdjlh')",
    'from __main__ import contains_digits_any')
Is there a better way to find if string contains digits?