Practice makes perfect help please


#1



def cube(n):
    return n*n*n
def by_three(n):
    if n % 3==0:
        return by_three(n)
    else:
        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?


#2

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


#3

That worked thanks so much.


#4