returned 'False' instead of False

```
Replace this line with your code.
def cube(number):
return number*number*number
def by_three(number):
if number%3==0:
cube(number)
else:
return "False"
```

returned 'False' instead of False

```
Replace this line with your code.
def cube(number):
return number*number*number
def by_three(number):
if number%3==0:
cube(number)
else:
return "False"
```

by_three is a function, so it should return the cube number of number- parameter instad of calling to it.

Here is the code I used that worked:

def cube(number):

return number ** 3

def by_three(number):

if number % 3 == 0:

return cube(number)

else:

return False

cube(3)

use this code

def cube(number):

return number*number*number

def by_three(number):

if number % 3 == 0:

return cube(number)

else:

return False

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.