What's the mistake here?


#1

def cube(number):
return number**3

def by_three(number):
if number % 3 == 0:
return cube(number)
else:
print "input a number multicable by 3"

But I am getting "Oops, try again. by_three(1) returned None, did you remember to return the result?"

Whats the mistake here I cannot understand, please help


Need help in Practice Makes Perfect
#2

This line is not asked for. All we need here is,

    return False