I\'m very new to programming, have been learning python from past 3/4 weeks and this is one of the assignments given.
Input
Dump after processing whole rows.
import csv import json with open('test.csv') as f: reader = csv.DictReader(f) rows = list(reader) with open('test.json', 'w') as f: json.dump(rows, f)