Practice Makes Perfect - Error


#1

I have this and it still tells me that line 8 has a syntax error. Doesn't make sense:

def cube(number):
return number**3
def by_three(number):

if number % 3== 0:
return cube(number)
print "number is divisible by 3"
else:
return False


Practice Makes Perfect (unusual error)
#2

Please post your preformatted code :slight_smile:


#3

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