Practice makes perfect


Kindly help.
Cant get past this exercise :slight_smile:Used this code:
def cube(number):
return number**3

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

and it shows error:

File "python", line 4
def by_three(number):
IndentationError: unindent does not match any outer indentation level

Dont know what I'm doin wrong.


Please take advantage of the formatting tips found here:

Then we can see your indents; otherwise, the code appears without
your formatting.


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