#write a function ave_3 that has 3 parameters and function returns #average of function parameters #write a program that reads 6 ints #program finds average of first 3 ints, and average of 4th, 5th #and 6th input def ave_3(a,b,c): #a,b and c are called - FORMAL PARAMETERS #they are placeholders to write function definition #result=(a+b+c)/3 #return result #we don't need variable result but instead #calculations could be done in return statement return (a+b+c)/3 def main(): for i in range(2): a=int(input("enter int ")) b=int(input("enter int ")) c=int(input("enter int ")) #these a,b and c are NOT the same #as a, b and c in the function # res=ave_3(a,b,c) # print("their average is", res) print("their average is", ave_3(a,b,c)) 4 #we can put function call inside print statement main()