It looks like plane_ride_cost does not return 183 when the city is Charlotte


#1



https://goo.gl/XcGDmT

Error: It looks like plane_ride_cost does not return 183 when the city is Charlotte.

It should return the value, right? What am I doing wrong?

def hotel_cost(nights):
    return 140 * nights
def plane_ride_cost(city):
    city = raw_input
    if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif city == "Pittsburgh":
        return 222
    elif city == "Los Angeles":
        return 475


#2

Your function ignores the argument given to it, it assigns something else to it


#3

Soooooo how do I fix it?


#4

By.. doing the opposite of what I pointed out? You'll have to be more specific, I think I've already answered that.


#5

I thought == recognizes and = assigns.


#6

I figured it out. I wasn't supposed to have the raw input thing. good. bye.


#7

Hey, how did u solve it?


#9

@corejumper56505 He solved it by removing the line city = raw_input, a line that wasn't necessary.


#10

but how do i slove it?


#11

You're returning a string instead of a number, so removing the quotes should do it.


#12

Thank you dude.............................