请为下列代码的注释编写文档。


# This function takes a list of numbers as input, and returns
 # the sum of all numbers in the list.
def sum_list(numbers):
    total = 0
    for num in numbers:
        total += num
    return total
Documentation for sum_list function:

This function takes a list of numbers as input and returns their sum.

Parameters:
- numbers: A list of numbers.

Returns:
- total: The sum of numbers in the input list.