Question: Functions Exercise 1 in Python Problem Write a function called avg that takes two parameters. Return the average of these two parameters. If the parameters
Functions Exercise in Python
Problem
Write a function called avg that takes two parameters. Return the average of these two parameters. If the parameters are not numbers, return the string, Please use two numbers as parameters.
Expected Output
If the function call is avg then the function would return
If the function call is avg "cat" then the function would return Please use two numbers as parameters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
