Built-in function inside function


#1

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

can anybody describe the function part in details. I have no clue about sum(number) as it is built-in function?


#2

that is why documentation exists:

https://docs.python.org/2/library/functions.html#sum