Question: What are the Python codes for these two questions? string) and an output csv filename (a string), where the input csv filename is the name


What are the Python codes for these two questions?
string) and an output csv filename (a string), where the input csv filename is the name of a file that exists and the output csv filename is the name of the file you will write your output to. Your function should create a copy of the input csv file with an extra column containing each student's test average. Your function should not return anything How to test: # call inside main() write_with_averages( 'random_grades.csv', 'grades_and_averages.csv') There will be no output, but now a file named grades_and_averages.csv should exists in the same folder where random grades.csv is located and should contain the following Name,Test1,Test2,Test3,Average lla, 1,67,64,44.0 Xavier,83,11,54,49.333333333333336 Phillip,39,95,16,50.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
