Question: How to shift the numbers downward a line like the expected answer. Code gives right answers but not in the right position. Expected Answer: Enter

How to shift the numbers downward a line like the expected answer. Code gives right answers but not in the right position.

Expected Answer:

Enter the height values as a LIST: [6.9, 7.8, 8.0, 7.3, 6.6, 7.0, 7.1, 6.9, 7.7, 6.5, 6.4, 6.3] Geometric mean equal to 7.02

How to shift the numbers downward a line like the expected answer.

\begin{tabular}{r|l} 1 & \# Given: \\ 2 & X= Xval(input("Enter the height values as a LIST: ")) \# complete the code... \\ 3 & L=1 \\ 4 & N=12 \\ 5 & for i in range (0,N): \\ 6 & L=X[i] \\ 7 & GM=L(1/N) \\ 8 & \\ 9 & \# OUTPUT \\ 10 & print("Geometric mean equal to %.2f"%GM) \# Notice how to print with 2-decimal a \end{tabular}

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!