Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE PYTHON Write a code in Python-3 to report the geometric mean (GM) of heights (x) of a team basketball with N-players. This average is

USE PYTHON
Write a code in Python-3 to report the geometric mean (GM) of heights (x) of a team
basketball with N-players. This average is defined as:
The program must ask the user the number of players (N) and the height (x) of each one
which will be fed as input into a list X. The x heights must be multiplied (use a
accumulator) and with the result calculate the geometric average (GM). report average
geometric (GM), only.
image text in transcribed
Geometric Mean with a List Fsccribe un cdigo en Python-3 para reportar el promedio geomtrico (GM) de estaturas (x) de un equipo de baloncesto con N-jugadores. Este promedio es definido como: GM=nx1x2x3xn El programa debe de preguntarle al usuario el nmero de jugadores (N) y la estatura ( x ) de cada uno las cuales se alimentar como input en una lista X. Las estaturas x deben de multiplicarse (use un acumulador) y con el resultado calcular el promedio geomtrico (GM). Reportar el promedio geomtrico (GM), solamente. H Given: X= eval(input("Enter the height values")) He.g. [6.9,7.8,8.0,7.3, etc] print(X)

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

Recommended Textbook for

More Books

Students also viewed these Databases questions