def average(numlist):
    """
    Find average of a list of numbers.

    Uses for loop to iterate through parameter NUMLIST
    and adds the sum of each element until the end of
    the list. AVERAGE then returns the sum divided by
    the length of NUMLIST.
    """
    numlist_sum = 0  # initialize sum to zero
    # Iterate over NUMLIST and add each element to the sum
    for num in numlist:
        numlist_sum += num

    # Return NUMLIST_SUM divided by LEN(NUMLIST) to calculate average
    return numlist_sum / len(numlist)