Raspberry Pi - Data Logging and Databases
Identify the error in this Python code for logging to CSV on Raspberry Pi:
import csv
file = open('log.csv', 'a')
writer = csv.writer(file)
writer.writerow(['Time', 'Value'])
file.close()