Feels everything is okay but still struck help me


#1

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 Angels":
return 475;https://www.codecademy.com/courses/python-beginner-P5YtY/1/2?curriculum_id=4f89dab3d788890003000096#


#2

Not sure why you put a semicolon at the end of this line, but it's causing the error. Remove it, and you should be fine. :slight_smile:


#3

i already tried that still it's not working


#4

Los Angeles is spelt wrong in your code, fix that. Also change:

the parameter "nights" into just "night".


#5

thx dear :slight_smile: it's working


#6

Welcome. Glad to help.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.