Getting There, what is wrong with this?


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/2?curriculum_id=4f89dab3d788890003000096#


Oops, try again. It looks like plane_ride_cost does not return 183 when the city is Charlotte.


I expected it to be correct but i don't know what to do to correct this error, can anyone help?


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"


#2

i worked it out, my numbers don't need the quotation marks.


#3

wow, i didn't even need anyone's help


#4

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