Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

-2 4 6
63 -55 -134

2,4,6

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() irst_multiple_input = raw_input().rstrip().split() a = int(first_multiple_input[0])

b = int(first_multiple_input[1])

c = int(first_multiple_input[2])

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

fptr.close()

avg = absAverage(a, b, c)

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions