Python - Structured Data Files
Identify the error in this code snippet:
import csv
with open('data.csv', 'w') as f:
writer = csv.writer(f)
writer.writerow(['Name', 'Age'])
writer.writerow(['Bob', 25])