I don't know how I can do this


def cube(number):
return number *2

if cube(number) % 3 == 0:
print "nao e divisivel"+cube(number)
print "number nao e"+by_three(number)


The term cube means, 'to the power of three'.

def cube(number):
    return number ** 3

The exercise asks us to cube any number that is divisible by 3.

def by_three(number):
    if number % 3 == 0:
        print cube(number)

Now we need to check this. Please post a link to the exercise you are on. Thank you.


tks bro!
kisses from brazil! :slight_smile: