Planning Your Trip


#1


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


def hotel_cost(nights)
    return 140 * nights


#2
 My code doesn't run correctly even after including the input argument, "nights." Please advise.

Thanks!

Ian Michael Jones


#3

this line

def hotel_cost(nights)

you forgot the : at the end

:


#4

Hi, below is the correct code

def hotel_cost(nights):
return 140*nights
hotel_cost(140)