Question: 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

this is my code it works perfectly fine until i put itthis 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

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!