I cannot execute this code on Python [on hold]

Error:#im getting an error of “it looks like nothing was printed to the console!”. Im learning Python on Code Academy
def hotel_cost(nights):
hotel_cost = 140 * nights
return hotel_cost
def plane_ride_cost(city):
if city == "Charlotte":
return 183
elif city == "Tampa":
return 220
elif city == "Pittsburgh":
return 222
elif city == "Los Angeles":
return 475
def rental_car_cost(days):
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
else:
return days * 40
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)


Source: python

Leave a Reply