Python program to calculate the number of letters and words

By: Editorial Staff | Last Updated: | In: Python Programming


One of our site visitors asked a question to write a program that accepts a sentence and calculate the number of letters and words in Python programming language. In this post, we have described his question and shared a python program with the output.

Python program to calculate the number of letters and words

Let’s suppose the following input is supplied to the program:

Python Program

To increase your Python knowledge, practice all Python programs, here is a collection of 100+ Python problems with solutions.

Share this post!


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari