It's Okay to be Average


Hello I need help with this I keep on getting the error: average([3, 0]) resulted in an error: float() argument must be a string or a number.
This is my code:
def average(numbers):
total=float(total) / len(numbers),
return total


1) Your code isn't valid syntax - make sure it's entirely intact in your post if others are to look at it
2) What are your thoughts on that error message? Agree/disagree with it? See where it is? Would you argue that you are using it like it says you should? (What stops you from addressing it, what are you missing?)


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