Coders Packet

word count in Python

By MODUGU. PALLAVI SAI SRI

word count is used to find the number of words in a document while you type. It is very helpful in our daily life.

The Word Count code is used to count the no.of words present in the given input. It defines a function called count_words. In the second line of the code, we have to split the word which can help to cut the sentences into words. so that these words will be returned as the length of the words. first, we have to give a sentence as input then the program will count the words. At last, it will print the words. If the words are above or equal to 100 it is represented as a paragraph. so, if it crosses the 100 words of the given input it will be printed a message called Yahoo! It is a paragraph. By this code, we can easily identify the no of words in a given document.word count using python

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by MODUGU. PALLAVI SAI SRI (pallavisaisri5)

Download packets of source code on Coders Packet