Update the Python program to calculate average of given numbers so that it takes an optional parameter. If set to True, the program should print the maximum among the given numbers instead of the average.
Not applicable
def calc_average(numbers, maximum=False):
 if maximum:
 return max(numbers)
 else:
 return sum(numbers) / len(numbers)