6/19


#1

i am getting this error when i run my code. what am i doing wrong?
Oops, try again.
cube(2) returned False instead of 8
(my indentation is correct, i dont know why it doesnt indent in the post)

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


#2

Hello.
I spend a long time trying to figure out.
Finally i got it

i hope it help! :smile:

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


#3

thanks man you saved my life

I couldn't understand some of what they were saying