Traceback (most recent call last):
File “python”, line 22, in
File “python”, line 20, in trip_cost
TypeError: unsupported operand type(s) for +: ‘int’ and ‘NoneType’
Btw was scrolling through other Q&A’s and yes my final print is NOT indented and I believe my entire code is indented properly but please correct me if indentation is actually the problem.
Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom
You have to call the function after the return. We also have learned that space matters. Make a new line between the function and than call the function.