7/7 help


#1

What is whorg with my code

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 days * 40 - 50
elif days >= 3 < 7:
return days * 40 - 20
else:
return days * 40

def trip_cost(city, days, spending_money):
return plane_ride_cost(city) + rental_car_cost(days) + hotel_cost(days) + spending_money

def spending_money(spending_money):
print trip_cost("Los Angeles", 5 ,600)


#2

Hi just remove this line

def spending_money(spending_money):

#3

it didn't work for me


#4

I got it now thanks for help