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 displaywords in python to read lines from a text file
"story.txt and display those words, which are less than 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
