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