def sum(values):
    """Returns the sum of all values in a list.

    Args:
        values (list)

    Returns:
        float: The sum of all values"""
    total = 0
    for value in values:
        total += value
    return total