def cube(number): return number**3 def by_three(number): if n % 3 == 0: return cube(number) else: return False
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
ah, yes, thank you! i did indeed realize this right after posting!