Hi,
The book (correctly) starts with:
Code:
import csv
from datetime import datetime
But the downloaded code (incorrectly) starts with:
Code:
import csv, datetime
As a result,
strptime (and presumably
strftime) are not found and you get:
Code:
AttributeError: 'module' object has no attribute 'strptime'