Plan your trip


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

this is driving me crazy , i refreshed , zoomed still not working

def hotel_cost(night):
    nightcost = 140
    return nightcost * night
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
    else :
        return "No City Chosen"
def rental_car_cost(days): 
    rental_car_cost = 40 * days
    if days >= 7:
        return rental_car_cost - 50 
    elif days >= 3:
        return rental_car_cost - 20 
        return rental_car_cost
def trip_cost(city,days,spending_money):
    return rental_car_cost(days) +hotel_cost(days)
    +plane_ride_cost(city) +spending_money
    print trip_cost("Los Angeles",5,600)


Rescue the line of "print" code


what does that mean , I'm a noob sorry


Your line of code "print" should be aligned with the "def" function.



Thank you! That worked for me.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.