Write a function to calculate and return the average of input numbers


Topic: Write a function to calculate and return the average of input numbers

Solution

def calc_avg(*args):
    if len(args) > 0:
        return sum(args)/len(args)
    return None



List all Python Programs