7.Practice Makes Perfect


#1

This is correct code , just copy it and paste it the same way i've copied it :slight_smile:

def cube(number): 
    return number ** 3 

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

#2
def cube(number): 
    return number ** 3

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

If your code is indented like this it should work


#3

it worked actually
try to move some codes like
"else"