Loading...
Loading...
Loading...
A teacher saves marks as CSV lines. Read the lines, split each with the csv module, and print the total of all marks.
name,mark (no header).Example
Input
3 Asha,82 Ravi,67 Meena,91
Output
240
Total is 82 + 67 + 91.
Try the problem first. Open one hint at a time.
csv.reader accepts a list of lines, so collect the n lines first.
Each value is text. Convert the mark with int before adding.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor