Functions, Practice makes perfect


Hello, I am having a issue with the code I have written. I have rewrote this code and still have had issues with it. I don't
understand the problem with My code and why it won't go through

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

i tried doing

number **3
return number

that didn't work

if number % 3 == 0:


Also I don't understand why the return function doesn't print to console.. Is it just suppose to hold the value to the defined function (or other function) then use that value in other def?


if number is divisible by 3, return cube of number


Oh! Thank you so much!