Question: Need to do python exercises for homework, any help? Just like the last exercise, you are supplied with a CSV file called mc.csv which contains

Need to do python exercises for homework, any help?

Need to do python exercises for homework, any help? Just like the

Just like the last exercise, you are supplied with a CSV file called mc.csv which contains results for all Rugby World Cup pool games up to and including 2011. The fields in each line of the CSV file are as follows: a Winning team name . Game score (separated by a dash) Losing team name . Date played u Score differential For example, the first line New Zealand,46 15,Argentina MUM/1987,31 indicates that New Zealand played Argentina on 1 June 1987 and won by 46 points to 15 points. Your task in this exercise is to parse the file and print a list of every team and the number of games they won and lost. The team name, games won, and games lost should be separated by a space. Sort your output by team name. For example, the first line of your output should be Argentina 5 1 Input files Contents of m . csv

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 Programming Questions!