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

 

david.white@denison.edu cs112fall2015 > meanSquares
prev  |  next  |  chance

Write a function meanSquares(data) that returns the mean (average) of the squares of the numbers in a list named data. Round your answer to the nearest integer, by applying the int() function at the very end.


meanSquares([68, 19, 80, 94, 78, 19, 61, 32, 63]) → 3931
meanSquares([16, 48, 8, 53, 60, 65, 70, 12, 97]) → 3079
meanSquares([18, 15, 36, 1, 71, 26, 12, 51, 19]) → 1185

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

def meanSquares(data):

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