Number of Letters and Digits

Question:
Write a program that accepts a sentence and calculate the number of letters and digits.

Program:

Explanation:

Function isdigit() checks whether the concerned character is a digit, while isalpha checks whether it is an alphabet

Output:

Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Leave a Reply

bodrum escort - eskişehir esc - mersin escort - mersin escort bayan - mersin esc