if number % 3 == 0:
return "n is divisible by 3"
return "n is not"
What are you trying to do here?
Instead of adding call to the function from within the function, you should perform the mathematical operation that will raise the number to the power of three, which is to cube the number. Return that result.
if(number % 3 ==0):
Dont know what the problem is.The compiler returns
Oops, try again. by_three(1) returned 'False' instead of False
P.S I HAVE DONE THE INDENTING
It tells you exactly what the problem is. READ THE ERROR MESSAGE. It says:
"You returned 'False' instead of False"
can you be more specific I do not understand what you are trying to say.If possible can you give me the code for this particular exercise?\
Thanks in advance
Thank you it worked