# "Practice Makes Perfect"

make sure you correct the code with TAB, would do it myself, but don’t really know how to do it (post the code in a square like you guys).

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

Why is this code not working .

Hi what error do you get?

File “python”, line 3
return numbernumbernumber
^
IndentationError: expected an indented block

Like the error says… IndentationError: expected an indented block so it should be like that

``````def cube(number):
return number*number*number
``````

Still not working!! and thanks for responding

Can you post your code and the error you get now?

umber = 9
def cube(number):
return numbernumbernumber
def by_three(number):
if number % 3 == 0:
return cube(number)
else:
return False

Error:
File “python”, line 5
if number % 3 == 0:
^
IndentationError: expected an indented block

sorry

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

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

Actually return is not showing with spaces/indentation for some reason but there is space like you suggested.

here how to format your code

This how it looks after editing

you should also indent the if statement inside the function by_three() llike that

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

Still same

Look well your code and look my last post…

1 Like

Thanks it worked your super awesome

1 Like

Thanks you so much for clarify in this way so we can understand the concept.

Thank you, wizmarco!

This passed. I saw other instructions people were giving but they were adding more than what was being asked in the instructions.