Returning values


It returns none. The error message from the interface is "Oops, try again. by_three(3) returned None, did you remember to return the result?"

Can someone help me understand what values the question wants me to return?

def cube(number):
    return number**3
def by_three(number):
    if number%3==0:
        print a
        return False


There, you should return a

return a


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