def sum_function(values):
    """Sum the values in a list. 

    Args:
        values (list): List of numbers

    Returns:
        int: Sum of values
    """
    result = 0

    for i in values:
        result += i
    return result