6. Practise Makes perfect


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/1/5?curriculum_id=4f89dab3d788890003000096


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"
    else:
        print "n is not"


#2

your by_three function only prints? It never returns anything


#3

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