Functions 6/19 alternative answer

Hi, I have now completed this challenge but, I wanted to know if the following code is functionally the same (For my personal peace of mind)

def cube (n):
return n**3
def by_three:

 if n/3 == int(n/3):
    return cube (n)

This came back wrong, but functionally is it as correct as what the console wanted ?

Was there that space there between cube and (n) in your code?
If so, there’s your problem – you can’t put spaces between function calls and parameters.

thank you, removed it now