Question: Write a function in Python to count and display the total number of words in a text file. A boy is playing there. There is

Write a function in Python to count and display the total number of words in a text file. A boy is playing there.
There is a playground.
An aeroplane is in the sky.
The sky is pink.
Alphabets and numbers are allowed in the password.
Write a function display_words() in python to read lines from a text file
"story.txt", and display those words, which are less than 4 characters.
A boy is playing there.
There is a playground.
An aeroplane is in the sky.
The sky is pink.
Alphabets and numbers are allowed in the password.
Write a function in Python to count and display

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!