Question: Python: Write a program in a file called averageLength.py This program asks the user for three strings and prints the average length of the strings
Python:
Write a program in a file called averageLength.py
This program asks the user for three strings and prints the average length of the strings entered.
Display only digits after the decimal point.
HINT: the average of three numbers is computed by adding the three numbers and dividing the result by
HINT: the length of a string is computed using the function len. Lenhello return
Examples:
python averageLength.py
enter first string: a
enter second string: b
enter third string: c
the average length is:
python averageLength.py
enter first string: hello world
enter second string: hello world world
enter third string: hello hello world world
the average length is:
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
