def cube(number): return number * number * number def by_three(number): if number % 3 == 0: return cube(number) else: return False
This code passes but the result is only "none" and not cube of number or false. I tried raw_input, input() in all possible places but it won't work. Even if i try to put number = 3 it won't work. Any other method? Am i missing something?