Practice makes perfect


#1

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)
else:
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.


#2

Please take advantage of the formatting tips found here:

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


#3

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