Practise makes perfect


#1

what is wrong with my code

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

#2

the function by_three should be after (not inside) your cube function (hint: indention)

Also, if you want indention to show on the forum read this help topic:


#3

Thank you, that helps me! and its solved !