Merge pull request #54 from liangpeili/main
keep it consistent with solution in 1_4
This commit is contained in:
commit
f2aebe0398
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user