I am stuck please help


#1



Hello I am stuck at Functions


This is what it said Oops, try again. by_three(1) returned None, did you remember to return the result?


I tried something else but it also didn't work


Replace this line with your code. 
def cube(number):
    return number**3
def by_three(number):
    if number % 3 == 0: 
        return cube(number)
    else :
        False


#2

else :
    False

Flase what? you just said False.you didn't give any instruction to it.


#3

so what do I need to do


#4

Error:

did you remember to return the result?

so what do you think?what do you need to do?


#5

thanks for helping me now I did it


#6

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