Where is the indent Error?
Make the function return the cube of that number...
cube is not a number, so,
cube ** cube
is going to raise an exception. Recall that the cube of a number is that number raised to the third power.
There is no code inside the if branch, so the
else is unexpected. Again, using the function name inside the function is not going to work as expected, and division is out of the question.
Recall that divisibility is tested using the
The else branch should simply return False.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.