Wats wrong?


#1


def hotel_cost(nights):
return 140*nights
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=days*40
        if days>=7:
            return cost-50
        elif days>=3:
            return  cost-20


Replace this line with your code.


#2

Nothing is wrong until you've described a problem! What should it do differently? What's your reasoning so far about the problem?

Please make sure that your code can be copied from your post to the same effect as what you're seeing. That's currently not the case (unless you're getting an IndentationError) Preferably also include a link to where it should be run.


#3

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