<What do you expect to happen instead?>


#1

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

it doesn't work. And help me


#2

here:

if number/3==0:

why do you use the division operator? To check if a number is divisible by 3 we need to use the modulo operator.


#3

In Python we have two things that always confuses.

/ - This is division that gives you quotient
% - This is modulo operator that gives remainder after division.

To test if something is divided by some number ,It should leave remainder 0
so we need to find remainder?


#4

Thank you , it's work


#5