7 taking a vacation


#1

Hi, at the last test i put the next code:

def costo_hotel(noches):
return 140 * noches

def costo_del_vuelo(ciudad):
cities = {
"Córdoba": 821,
"Iguazú": 941,
"Ushuaia": 1280,
"Bariloche": 1848,
}
return cities[ciudad]

def alquiler_de_auto(dias):
costo = dias * 338
if dias >= 7:
costo = costo - 100
elif dias >= 3:
costo = costo - 50
return costo

def costo_viaje(ciudad, dias, otros_gastos):
costo_viaje == alquiler_de_auto(dias) + costo_hotel(dias) + costo_del_vuelo(ciudad) + otros_gastos

return costo_viaje

print costo_viaje ("Bariloche", 5, 600)

When I run the code, i get that it works OK, BUT in the page that returns the code, i get this message:


None

I supose the program's code have to return another text, so.. what's wrong?????

Thank You


#2

Hi this part

costo_viaje ==

Try to put just one =


#3

Thanks! now it's working!