Practice makes perfect


#1

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)
    else:
        return False

i would really like some help with this thanks.


#3

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


#4

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


#5