Reference no: EM132182778
This week, you'll leverage your knowledge basic Python data types, lists, and functions to calculate student grade averages.
Write a function called toNumbers(<list>) that accepts a list of strings, each of which represents a number, and converts each to a number,
Write a function called sumlist(<list>) that accepts a list of numbers and returns the total of them,
Write a program that reads a file called grades.txt in the same directory, and uses the above functions to compute and print out the average grade for each line
Your program can expect the file to have grades formatted like this, although actual number of grades and lines may vary:
74,85,65,56 97,67,83,96
Output should look like this:
average = n.n average = n.n