What is this error message?


#1

heres my code:

def cube(number):
    return n ** 3

def by_three(number):
    if number == 3:
        return cube
    else:
        print "LIUMMMMM!!!"

and heres the error message:

Oops, try again. cube(1) resulted in an error: unsupported operand type(s) for ** or pow(): 'function' and 'int'

what does it mean?!!


#2

is this what you are looking for

def cube(number):
    return number**3

def by_three(number):
    if number%3 == 0:
        return cube(number)
    else:
        return "LIUMMMMM!!!"
print by_three(3)
        
print by_three(5)

#3

def cube(number):
    return n ** 3

You start off talking about a variable called number but then you never use it and instead try to use one called n.