Practice makes perfect


#1

i have problem with my code . here is the error "cube(2) returned 16 instead of 8" no matter what number i change it , it stills says the same

Here is my code

def cube(number):
return number ** 4;
def by_three(number):
if cube(number) % 3 == 0:
return ;

else: 
     return "its bad"

cube(2)
by_three(cube(number));


#2

Wait yea, that was right lol

It looks like you're using 4 instead of 3.


#3

I really got lost with those numbers , don't think i don't know math , but i got so confused with them


#4

I fixed the problem , i saw carefully the guide what i have to do and passed it


#5

Hey no big deal man, I make mistakes like that all the time :sweat_smile: Took me a minute to remember if cubed was by 2 or squared was by 2 the first time I did that exercise.