Help with 4/7 Transportation Please?


#1

I keep getting an error message and can’t seem to figure out the error in my code.

def hotel_cost(n):
return 140*n

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 “Invalid Location Entered”

def rental_car_cost(days):
cost = 40 * days
if days >= 7:
return cost - 50
elif days >= 3:
return cost - 20
else:
return cost


#2

It would be helpful if you also posted the error message you’re getting. :slight_smile:


#3

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