I'm trying to justify the lines of this code to myself before moving on. I figured out thanks to a separate post that this is the correct code:
if number % 3 != 0:
How can I know that the following instructions mean that I must set the code in Line 4 equal to zero?
Step 4: "if that number is divisible by 3, by_three should call cube(number) and return its result. Otherwise, by_three should return False."
Please help me understand the reasoning in knowing to write
if number % 3 != 0
instead of anything else.
Replace this line with your code.