Practice makes perfect


Oops, try again. by_three(1) returned 1 instead of False
I keep getting this and I dont know what I did wrong, I dont know what to do, please help!

def cube(number):
return number**3

def by_three(number):
if (number % 3):
return cube(number)

    return False




to check if a number is divisible by 3, the remainder of the number divided by 3 should equal zero. The equal zero bit is missing in your case


Thank you so much, I got it