I don’t understand why my code didn’t work.

Can anyone help me out?

I tried:

```
def cube(number):
number ** 3
return number
def by_three(number):
if number % 3 == 0:
return cube(number)
else:
return not True
```

when I click run I get “cube(2) returned 2 instead of 8”

The solution they give is:

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