Python - Structured Data Files
Find the bug in this code:
Assuming the CSV header is
import csv
with open('input.csv', 'r') as f:
reader = csv.DictReader(f)
for row in reader:
print(row['Name'])Assuming the CSV header is
name,age (all lowercase).