The command PRINT does not print to the console


#1

city = "Los Angeles"
spending_money = 600
days = 5
def hotel_cost(days):
return 140 * days
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):
total = days * 40
if(days >= 7):
total -= 50
elif(days >= 3):
total -= 20
return total
def trip_cost(city, days, spending_money):
a = rental_car_cost(days)
b = hotel_cost(days)
c = plane_ride_cost(city)
total = a+b+c
return total

print trip_cost(city, days, spending_money)

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


#2

Can you try to show your indentation with the preformated text button?

Your trip_cost() function has a parameter spending_money that is not referenced inside of the function.