Practice ยท 1 of 1
Total a CSV Column
Implement total_second_field(csv) where csv contains lines name,number (e.g. "pen,2.5\nbook,10"). Return the sum of all the second fields as a double. Empty input โ 0.0.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Parsing Practice: Fields and Records