def product(lst):
    Total = 1
    for x in range(len(lst)):
        Total *= lst[x]
    return Total
def average_magnitude(lst):
    Total = 0
    for x in range (len(lst)):
        Total += abs(lst[x])
    return Total/(len(lst))
def average_power(lst):
    Total = 0
    for x in range (len(lst)):
        Total += (lst[x])**2
    return Total/float((len(lst)))
def arithmetic_sequence(lst):
    if len(lst)== 0:
        return False
    elif (len(lst)==1 or len(lst)==2):
        return True
    else:
        index1 = 1
        d = lst[1]-lst[0]
        while index1 < (len(lst)-1):
            if lst[index1+1] - lst[index1] != d:
                return False
            index1+=1
    return True
def divisors(n):
    index1 = 1
    lst =[]
    while index1 < n+1:
        if n%(index1) ==0:
            lst.append(index1)
        index1 +=1
    return lst
def mult3(lst):
    index1 = 0
    lst2 = []
    while index1 < len(lst):
        if lst[index1]%3==0:
            lst2.append(lst[index1])
        index1+=1
    return lst2
    