Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started