5/9 error


#1

I have used my own and 3 different "working codes from here. All return the same error.
Oops, try again.
average([3, 0]) resulted in an error: 'int' object is not iterable.

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

and:
def average(numbers):

total = sum(numbers)
total = float(total)
total /=len(numbers)
return(total)

plus one other...they all appear to be correct...yet I get the ....
Oops, try again.
average([3, 0]) resulted in an error: 'int' object is not iterable


#2

The first example is indented correctly as well...the copy/paste lost the format


#3

Problem solved. I left and came back and the same code worked just fine.Go figure.