Question: Write 2 functions and 1 program. Create a function named teamaward that will return to the team leader a text message about the teams performance

Write 2 functions and 1 program.

Create a function named teamaward that will return to the team leader a text message about the teams performance which is based on the average score of the bowling team.

Create a function named avgscore. The avgscore function uses a for loop to input the bowling score of each team member. The avgscore function calculates the average score for the team and returns that value.

Function Name

Purpose

Required input - parameter(s)

Expected result (either none or one - if there is one describe)

Write the Python code for a program outside the functions that will ask the user to enter the number of team members. It will use the following print statement to invoke the nested functions: print ("Our bowling team award notice is: ", teamaward(num))

Test your program with team bowling scores that average to 300, 100, and 0.

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!