Getting there


i dont know why this code does not work! please help!

def hotel_cost(nights):
return 140 * nights

def plane_ride_cost(city):
str = "city"
if city == "charlotte":
return 183
elif city == "tampa":
return 220
elif city == "Los Angeles":
return 475
elif city == "pittsburgh":
return 222


this is function, you must call them for run them,

for exp:
after all of code

if your code does match with here i should say you forget indent.


We do not use texting norms on the forums, to the previous poster. Please use grammar, and treat the audience like real people you don't know, so give respect. We are not your friends who you can text with complete familiarity.

To the OP, this is also indicative in proper names. Grammar, in the form of capitalization of proper names. See to that and the code looks right. We will have to trust to your formatting since you didn't post it formatted.