def cube(number): cubed = number ** 3 return cubed def by_three(number): if number % 3 == 0: return cube(number) else: return False print cube(50)
see when i run this code even when the number is not divisible by 3 it performs the action cube(number) instead of printing false ?? anybody ??