Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is my code it works perfectly fine until i put it grader it says: PYTHON ONLY Test Failed: 'Traceback (most recent call last): File

image text in transcribedthis is my code it works perfectly fine until i put it grader it says: PYTHON ONLY

Test Failed: 'Traceback (most recent call last): File "means.py", line 19, in  stdio.write(\'geometric mean = \' + str(10 **(gm))) ZeroDivisionError: integer division or modulo by zero' != 'geometric mean = 2.605171, harmonic mean = 2.189781' 
import math import stdio import sys a for v in sys. argv [1 J: list float (v a append (list) n len for v in a: gm m math logle (v) hm hm (1 v) stdio write geometric mean str 10 grm n))) stdio .writeln harmonic mean str(n hm

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago