Python - Structured Data Files
What will be the output of this code snippet?
import csv
rows = [['id', 'score'], ['1', '85'], ['2', '90']]
with open('scores.csv', 'w', newline='') as f:
writer = csv.writer(f)
writer.writerows(rows)
with open('scores.csv', 'r') as f:
reader = csv.reader(f)
data = list(reader)
print(data)