id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

david.white@denison.edu cs111fall2019 > geoMean
prev  |  next  |  chance

The geometric mean of n numbers is de ned to be the nth root of the product of the numbers. (The nth root of a number is the same as the number raised to the 1/n power.) Write a function geoMean(high) that returns the integer part of the geometric mean of the numbers between 1.0 and high, inclusive. Use a for loop.


geoMean(13) → 5
geoMean(1) → 1
geoMean(8) → 3

...Save, Compile, Run (ctrl-enter)

def geoMean(high):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy