HTMLify

mean.py
Views: 148 | Author: abh
def mean(*nums):
    s = 0
    c = 0
    for n in nums:
        s += n
        c += 1
    return s / c

def mean(nums):
    s = 0
    c = 0
    for n in nums:
        s += n
        c += 1
    return s / c

def mean(*nums):
    return sum(nums)/len(nums)

def mean(nums):
    return sum(nums)/len(nums)

Comments