Practice makes perfect


#1

When I run the code I get an error saying by_three(3) returned 3 instead of 27

def cube(number):
return number ** 3

def by_three(number):
if number % 3 == 0:
return number
else:
return False

If anyone could help I'd appreciate it


#2

here you should return number cubed, so in case of 3 it should return 27. You can do by calling the cube function


#3

Thanks for the help I can't believe I missed that


#4