Question: In Python. Write a function and provide a program to test it . The program should be called 'average', it should have three arguments, and

In Python. Write a function and provide a program to test it. The program should be called 'average', it should have three arguments, and it should return the average of those three numbers. Be sure to follow the format described in the Canvas instructions for this assignment. The program should ask the user for the three numbers (floating point numbers), use the function to find the average, and then print that returned value.
def average(x, y, z)(returning the average of the arguments)
The input and out should look like this (the user entered numbers are in bold for example only):
Enter number 1: 20
Enter number 2: 15
Enter number 3: 45
The average is: 26.666666666666668

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!