# Program to calculate the average of 7 numbers
# using a function call. The input numbers are
# defined as a list.
# our function 'avg' is defined here
def avg(nums):
sum = 0.0
for i in range(len(nums)):
sum = sum + nums[i]
average = sum/len(nums)
return average
# Main program begins here.
nums = [8.2, 4.5, 7.3, 7, 56.0, 7.9, 100.4]
result = avg( nums )
print("The mean value is : ", result)