Define a function that takes an argument in the name of a


Define a function that takes an argument in the name of a CSV file. This file has a single row containing letter grades (A-F) separated by comma (hence CSV file). Your function should print the distribution of grades.
For example, the call problem4( ‘grades.txt')
prints (note the correct use of singular ‘student' versus ‘students')
2 students got A
3 students got B
1 student got C
2 students got D
1 student got F
Where the file grades.txt may have this single line -
F, A, B, D, C, A, D, B, B

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Define a function that takes an argument in the name of a
Reference No:- TGS0646043

Expected delivery within 24 Hours