keep it consistent with solution in 1_4
This commit is contained in:
@@ -12,7 +12,7 @@ def portfolio_cost(filename):
|
|||||||
|
|
||||||
# This catches errors in int() and float() conversions above
|
# This catches errors in int() and float() conversions above
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print("Couldn't parse:", line)
|
print("Couldn't parse:", repr(line))
|
||||||
print("Reason:", e)
|
print("Reason:", e)
|
||||||
|
|
||||||
return total_cost
|
return total_cost
|
||||||
|
|||||||
Reference in New Issue
Block a user