HTMLify

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

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

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

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

Comments