Question: A football team X played n games. Write a Python program to calculate the sum and the average of goals which achieved by team X.

 A football team "X" played n" games. Write a Python program

A football team "X" played n" games. Write a Python program to calculate the sum and the average of goals which achieved by team X. The program should: Read the number of matches the team has played. Repeat the reading of the number of goals the team achieved in each match. Find and output the total number of goals Find and output the average number of goals for that team

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!