Can someone help me

# What's wrong?

**stetim94**#2

please copy paste your code to the forum so i can run it

just looking at it, to check if a number is divisible by 3 we need to use the modulo operator, given the remainder equals zero if number is divisible by three

a function ends the moment a return keyword is reached, so `return number`

is never reached given `return cube(number)`

will end the function

boolean values (`False`

and `True`

have an uppercase first letter

the if condition doesn’t require parentheses

```
def cube(number):
result = number ** 3
return result
def by_three(number):
if(number / 3 == True):
return cube(number)
result2 = number / 3
return result2
else:
return false
```

**stetim94**#4

this two lines do nothing:

```
result2 = number / 3
return result2
```

you should remove them

how is this:

```
if(number / 3 == True):
```

going to help you determine that a number is divisible by 3?

I tryng this:

def cube(number):

result = number ** 3

return result

def by_three(number):

if number / 3 != 0:

return cube(number)

else:

return false

**stetim94**#6

this line:

```
return false
```

doesn’t have proper indent.

uhm… `/`

is the division operator? Not the modulo operator. Use the modulo operator (`%`

) to see if `number`

is divisible by 3

**tagrockstar56816**#12

Help from here

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

**stetim94**#13

if number is divisible by 3, the remainder is zero, so you should check if number % 3 equals zero

if so, return True else return False

**tagrockstar56816**#14

like this?

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

**stetim94**#15

no, like this:

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

your `if`

had way much indent

**stetim94**#17

oops, my mistake. You should read the `cube(number)`

if number is divisible by three

i am human, i make mistakes, if i say something and the instructions say something else, follow the instructions

**tagrockstar56816**#19

I did itttt

Thank you

def cube(number):

number**3
return number**3

def by_three(number):

if cube(number) % 3 == 0:

return cube(number)

else:

return False