Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions