#Python supports multiple returns #you only write ONE return statement, and you list return variables #separated by coma #Write a function total_ave that has one parameter, num, number of items #to read. The function reads num integers and finds and returns sum and #average of input numbers #write main to test your function def total_ave(num_items): sum=0 for i in range(num_items): n=int(input("enter number ")) sum=sum+n ave=sum/num_items return sum, ave #DON'T WRITE #return sum #return ave #this is not correct implementation def main(): num_items=int(input("enter number of items ")) res1, res2 = total_ave(num_items) #res1 will get value of sum #res2 will get value of ave print("sum of all items is", res1) print("average is", res2) main()