Getting There


#1



Taking a Vacation, Getting There


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


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'
    else:
        return 'Price Unknown'


#2

Your return statements shoud not be strings


#3

Oops silly mistake thank you


#4

You're welcome :slight_smile:


#5

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