Practice makes perfect


when i put this in i get this error message, "Oops, try again. cube(2) returned 4 instead of 8"

This is my code:

def cube(n):
    return n**n

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

i would really like some help with this thanks.


a cube of a number is ^3, not ^2


yeah i was messing around with that and i finally got it! thanks anyway man :smile: