Practice Makes Perfect - Error


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"
return False

Practice Makes Perfect (unusual error)

Please post your preformatted code :slight_smile:


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