6. practice makes perfect...i sure hope so!


#1



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


#2

Hi @steevlin,

You have ...

if n % 3 == 0:

The variable that you need to access there is the by_three function parameter, which is number, rather than n.


#3

ah, yes, thank you! i did indeed realize this right after posting!


#4