Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here are additional tips/requirements for your program: You must store your words in a list Use one for-loop to get the words and store them

image text in transcribed
image text in transcribed
Here are additional tips/requirements for your program: You must store your words in a list Use one for-loop to get the words and store them in the list. Then use a second for-loop to find all short words (5 or fewer letters), a third for-loop to find all medium-length words (6-10 letters), and a fourth for-loop to find all long words (more than 10 letters). . In one of your for-loops, add up the lengths of all the words, so that you can calculate and print the average at the end of your program. You should format the average length to have two places after the decimal. Use the2f conversion specifier. You can use print) (with nothing in the parentheses) to print a blank line . The user might not enter any short, medium, and/or long words. You don't need to handle that differently your program just won't print any words under that heading. Your program should look exactly like the example above when it runs, except for the values of the inputs/outputs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions