### A program in Python that will accept any string and will calculate the number of digits and letters in that string.

In the above Python program to calculate the number of digits and letters in a string we used built-in function isdigit() to calculate the number of digits and isalpha() to calculate the number of letters. Sample Output: Input a string : Hello5World Letters 10 Digits 1