Functions, Practice makes perfect


#1

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
    else:
        return False
cube(2)

i tried doing

number **3
return number

that didn't work
and

if number % 3 == 0:

#2

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?


#3

if number is divisible by 3, return cube of number


#4

Oh! Thank you so much!


#5