I don't know how I can do this


#1

def cube(number):
return number *2
by_three(number):

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


#2

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.


#3

tks bro!
kisses from brazil! :slight_smile: