Merge pull request #54 from liangpeili/main

keep it consistent with solution in 1_4
This commit is contained in:
David Beazley 2024-07-31 10:40:26 -05:00 committed by GitHub
commit f2aebe0398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ The key feature that makes this work is that a defaultdict
automatically initializes elements for you--allowing an insertion of a
new element and an `append()` operation to be combined together.
## (c) Data Analysis Challenge
## (d) Data Analysis Challenge
In the last exercise you just wrote some code to read CSV-data related
to the Chicago Transit Authority. For example, you can grab the data

View File

@ -12,7 +12,7 @@ def portfolio_cost(filename):
# This catches errors in int() and float() conversions above
except ValueError as e:
print("Couldn't parse:", line)
print("Couldn't parse:", repr(line))
print("Reason:", e)
return total_cost