Why wont this work Transportation/Taking a vacation


#1

def hotel_cost(nights):
return 140 * nights

def plane_ride_cost(city):
if city == "Charlotte" or city == "charlotte":
return 183
elif city == "Tampa" or city == "tampa":
return 220
elif city == "Pittsburgh" or city == "pittsburgh":
return 222
elif city == "Los Angeles" or city == "LA":
return 475
else:
"Huh?"

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

  • List item

return cost


#2

I think your statements within your if constructs need to be indented 4 spaces (return statements, car_cost statements.)