6. Practise Makes perfect



Oops, try again. by_three(1) returned None, did you remember to return the result?

Replace this line with your code. 
def cube(number):
    result = number*number*number
    return result 
def by_three(number):
    if number % 3 == 0:
        print "n is divisible by 3"
        print "n is not"


your by_three function only prints? It never returns anything


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.