Stuck on 6 practice makes perfect


#1

this is my code it keeps giving me an error on line 7 invalid syntax
heres my code

def cube(number):
    return cube(number ** 3)
def by_three(number):
    if number % 3 == 0:
        print True
    return cube(number ** 3)
    else:
return False

#2

Check the indentation on return
else:

return False


#3

thanks im good now thanks a lot


#4

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