Python Programming Basics - Assignment
Problem Statement:
CSV file mpg.csv contains fuel economy data for 234 cars. Find the average hwy mpg for each class of vehicle in given dataset.
- Define function 'calculateAvgHwy' which will accept filepath as an argument.
- Import csv package and open csv file provided in 'files' directory into a list.
- Write a logic to find average of hwy.
- Function should return average for all class of vehicles given in dataset.
- Function should pass all test cases.