I have been stuck in this exercise for hours and no matter what I change, I keep getting the same error. I know the code is right because I looked in the Forums for help and it is exactly the way it should be. Please help me, I'm starting to think that this is a bug in console.
This is the error message: "Ops, tente outra vez. It looks like nothing was printed to the console!"
Due to the fact that the code is most likely right, It is supposed to PRINT THE ANSWER but it is just not happening.
Here is my code:
def hotel_cost(days): return 140 * days def plane_ride_cost(city): if city == "Charlotte": return 183 if city == "Tampa": return 220 if city == "Pittsburgh": return 222 if city == "Los Angeles": return 475 def rental_car_cost(days): cost = days * 40 if days >= 7: cost -= 50 elif days >= 3: cost -= 20 else: return cost def spending_money(money): return int(money) def trip_cost(city,days,spending_money): return plane_ride_cost(city)+rental_car_cost(days)+hotel_cost(days)+spending_money print trip_cost("Los Angeles", 5, 600)