3/7?


#1

help pls.

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

Hi, @meganinja05822,

Because your code is not formatted, it is difficult for other users to read and debug it. As code is being posted, you can format it by selecting it, and then by clicking the </> button above the editing area. This will enable us to see important details, such as the indentation and underscores.

The problem might relate to the indentation in your code, but we cannot see it. It will have to be formatted for us to find the problem.


#3

Your problem is with the indenting


#4

def hotel_cost(nights):

If the hotel cost $140 per night

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"
what is wrong?