A teacher has a gradebook CSV. The first column is the student's name, and every other column is one test's mark. The school wants a copy of the file with an extra total column at the end.
Task: write add_total(in_path, in_text, out_path). Read the gradebook from in_path and write a new CSV to out_path with:
"total" at the end,Then read out_path back with csv.reader and return the list of lists.
14, not 14.0."total" added.The starter code includes write_text and already uses it to save in_text into in_path. import csv is already at the top. Open the output file with newline="".