Practice makes perfect


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
return False

If anyone could help I'd appreciate it


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


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