Trying to break down this step into understandable pieces


#1

I have this:

def hotel_cost(nights):
return 140 * nights

And

nights = raw_input("How many nights? ")
print hotel_cost

When it runs I get:

How many nights? 5

I tried:

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

No chance in the error message.

What am I missing, to what should be one of the simplest things to do??


#2

Got it fixed

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

nights = int(raw_input("How many nights? "))
print hotel_cost(nights)