Question: # Rewrite the following program so that it computes the average # in a function called average _ of _ two. # Obtaining the input
# Rewrite the following program so that it computes the average
# in a function called averageoftwo.
# Obtaining the input from the user and printing of the result
# must still be outside of the the function.
#
# Make sure to write DOCSTRINGS for your function, including TYPE CONTRACT.
# Test it by running helpaverageoftwo in python shell.
#xfloatinputGive me st number:
#yfloatinputgive me nd number:
#averagexy
#printThe average of x "and", yis average
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
