Stuck in 6.practice makes perfect


It says by_three(3) returned 1 instead of 27

def cube(number):
    return number*number*number

def by_three(number):
    if number%3 == 0:
        return number/3
        return False


this line:

return number/3

you are doing the exact opposite of what is required. from the instructions:

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

you need to return cube(number)


Ohhh, thank you very much.