Good Morning Fellow students,
Following is my code for https://www.codecademy.com/courses/python-beginner-c7VZg/1/5?curriculum_id=4f89dab3d788890003000096#.
Although my code passed the test, I haven't completely understood this challenge.Can anybody explain me what is the meaning of this:
if that number is divisible by 3, by_three should call cube(number) and return its result. Otherwise, by_three should return False.
Following is my code
def cube(number): return number**3 def by_three(number): if (number%3==0): return cube(number) else: return False print by_three(7)
I will be grateful If some one can explain .