def advanced_mean(values):
    """Function that takes a list of numbers and returns the mean of all
    the numbers in the list.
    """
    total = 0
    for v in values:
        total += v
    mean = total / len(values)
    return mean