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 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
Get step-by-step solutions from verified subject matter experts
