Practice makes Perfect


#1



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


It says Did you define a Funtion called by_three


def cube(number):
    return number**3
    
    def by_three(number):
        if number %3==0:
         return cube(number);
        else:
            return False


#2

Remove the semicolon after the return statement on your second function.


#3

HI and pay attention to the indent of this function(also inside it)

    def by_three(number):
        if number %3==0:
         return cube(number);
        else:
            return False

#4

That still did not fix it thought @chipjumper36731


#5

Thanks that worked! @wizmarco


#6

Didn't check the indents. :slight_smile:


#7

3 posts were split to a new topic: Practice makes perfect