I am confused on how to resolve my error and what the code is saying if I actually typed out the instructions.
My code is:
number = raw_input("Enter a number:")
cube = number ** 3
if number / 3 >= 0:
else return False
I entered 9 and the error was - by_three(1) returned 1 instead of False.
First, def a function called cube that takes an argument called number. Don't forget the parentheses and the colon!
Make that function return the cube of that number (i.e. that number multiplied by itself and multiplied by itself once again).
Define a second function called by_three that takes an argument called number.
if that number is divisible by 3, by_three should call cube(number) and return its result. Otherwise, by_three should return False.