def cube(number): return number**3 def by_three(number): if cube(number)%3 == 0: return cube(number) else: return False
Above is the code I have in the editor. It works for the exercise (I can move on to the next exercise fine). However, when I test the code, it will print the number cubed regardless to if it is divisible by three or not. Why?