def cube(n):

n == n**3

return n

def by_three(n):

if n % 3 == 0:

return cube(n)

else:

return False

It says: Oops, try again. cube(2) returned 2 instead of 8

def cube(n):

n == n**3

return n

def by_three(n):

if n % 3 == 0:

return cube(n)

else:

return False

It says: Oops, try again. cube(2) returned 2 instead of 8

Hey there...

the problem is in line 2. it should read n = n ** 3 and not n == n**3