Wats wrong?


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):
        if days>=7:
            return cost-50
        elif days>=3:
            return  cost-20

Replace this line with your code.


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.


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