This is the link to the exercise: https://www.codecademy.com/courses/learn-python/lessons/functions/exercises/practice-makes-perfect?action=resume_content_item
It is a user defined functions with embeded fucntions.
I am testing this block of code and that’s what I get:
def cube(number): number = number**3 return number def by_three(number): if number%3 !=0: x =0 return x else: x = cube(number) return x y = by_three(3) print str(y)
The output is:
File “python”, line 11
IndentationError: unindent does not match any outer indentation level