My code isn't working despite the correct code


My code looks fine, but it wont work. Where am I going wrong?

Replace this line with your code. Do not remove the backticks that are above or below this line.

def cube(number):
    return number **3
def by_three(number):
 if number % 3 == 0:
      return cube(number)


hi its maybe a indent problem try it like that

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


Is the exercise telling you more than that? Maybe an error message is visible?


It turns out it was an indentation problem. Thanks for your help!