Taking a Vacation - Plan your trip


#1

Error msg: Oops, try again. It looks like nothing was printed to the console!

why? :sweat:


#2

the function call should be outside/after the function (hint: indention)


#3

I reset the code and added print trip_cost("Los Angles", 5, 600) with a 4 space indentation below the return line. I also got the Oops, try again. It looks like nothing was printed to the console! I'm getting frustrated as a new user. Any help would be greatly appreciated.


#4

That's the issue. No indentation is needed when the call is coming from the global namespace.


#5

There must be a bug. I tried with no indentation, then with 4 spaces, even 8 spaces. No luck. Time to move on I hope.


#6

Disregard. I'm stupid. Spelling errors also cause problems in code. Issue resolved. Thanks!


#7