Open
Description
Exercise 1.28: Other kinds of “files”
gives an IndentationError
. It looks like
>>> import gzip
>>> with gzip.open('Data/portfolio.csv.gz', 'rt') as f:
for line in f:
print(line, end='')
should be changed to something like
>>> import gzip
>>> with gzip.open('Data/portfolio.csv.gz', 'rt') as f:
for line in f:
print(line, end='')
Thank you for this great course.
Metadata
Metadata
Assignees
Labels
No labels