Practice makes perfect help please


def cube(n):
    return n*n*n
def by_three(n):
    if n % 3==0:
        return by_three(n)
        return False
The error message says Oops, try again. by_three(3) resulted in an error: maximum recursion depth exceeded.
What am I doing wrong?


from the instructions:

if that number is divisible by 3, by_three should call cube(number) and return its result

but you call by_three instead of cube, try calling cube


That worked thanks so much.