Question: given 3 real numbers a,b, and c, complete the function absAverage () to output the average of the absolute value of the 3 numbers #!/bin/python

given 3 real numbers a,b, and c, complete the function absAverage () to output the average of the absolute value of the 3 numbers

#!/bin/python

import math import os import random import re import sys

# # Complete the 'absAverage' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER a # 2. INTEGER b # 3. INTEGER c # def absAverage(a,b,c): # Write your code here

if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') first_multiple_input = raw_input().rstrip().split() first_multiple_input = raw_input().rstrip().split()

a = int(first_multiple_input[0])

b = int(first_multiple_input[1])

c = int(first_multiple_input[2])

avg = absAverage

fptr.write(str(avg) + ' ')

fptr.close()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!