I'm stuck with this exercise, receiving the error notification as "cube(1) resulted in an error: maximum recursion depth exceeded". This is my code:
def cube(n): if n == n ** 2: return cube(n) def by_three(n): if n % 3 == 0: return cube(n) else: return False
Can anyone please comment on my code?
Many thanks & Cheers,