Help


#1



Hi, I 'm thinking about how i can do this


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 == 1: 
        return 40
    elif days == 2:
        return 80
    else:
        0
    
    if days >= 7:
        return  (days * 40) - 50
    elif days >= 3 and days < 7:
        return (days * 40) - 20
    
    else:
        return 0
        
def spending_money(n):
    return n 
        
def trip_cost(city, days, n):
    return hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days) + spending_money(n)

n = raw_input("Levando dinheiro extra")

city = raw_input("Qual cidade?")

days = raw_input("Quantos dias?")
    
print trip_cost(city,days,n)


#2

how can we help you ?