It's Okay to be Average


#1

Hey Guys

Thats what I got so far

def average(numbers):
total = sum(numbers)
return float(total) / len(numbers)

when I click on “Run” I get nothing back, no error code or hints.

Can someone give me an hint of what Im doing wrong ?

Thanks


#2

If you write in this line (after the function), does it print to the console?

print (average(lloyd['tests']));

#3

yes, it does. I can see the number 82.5.


#4

Are you getting an SCT (lesson checker) error?


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.