Sera H.

asked • 02/21/21

Help me write a python code

Write a program that reads three decimal numbers and then calculates the average. Do not round the original values during the calculation.

  1. Print the three numbers with one decimal place, in a column
  2. a dotted line at the bottom of the column
  3. the average of all three numbers below.

Your screen should look like the picture with all the numbers in the output being right-aligned using 15 spaces. You must use .format to print and align all of the output.

1 Expert Answer

By:

Patrick B. answered • 02/21/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.