Question: using payton, Write a program that calculates the average word length in a sentence entered by the user. Develop your own test data (create a

using payton, Write a program that calculates the average word length in a sentence entered by the user. Develop your own test data (create a sentence, count the words, the chars and figure the average). You can assume there will be NO PUNCTUATION in the entered sentence and you are not to count blank spaces.
Example: The fastest way to home is by car
this sentence has 8 words with 26 letters, therefore, the average word length is 3.25
Put both programs into 1 py file (use mainA(), mainB(), etc)

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 Databases Questions!