Funny Error Message


#1


Hey guys keep getting this error message when trying functions in python...getting annoying as can't see what is wrong with my code xD...

function (function_name) at 0x7f473fba9e60

any ideas at what I'm doing wrong?
thanks xD


P.s. this is an example of what I'm trying to do


def average(numbers):
    total = sum(numbers)
    total = float(total)
    total /= len(numbers)
    return total
    
    average([1,2,3,4,5])
print average.


#2

Hi this line

print average.

you have a dot after average
then instead of printing the function you should print the call function like this

print average([1,2,3,4,5])