Python - Structured Data Files
What will be the output of this code snippet?
import csv
from io import StringIO
csv_content = 'name,age\nAlice,30\nBob,25'
file = StringIO(csv_content)
reader = csv.DictReader(file)
for row in reader:
print(row['age'])