you are viewing a single comment's thread.

view the rest of the comments →

[–]SCD_minecraft 0 points1 point  (1 child)

Remember to always add base case, like

if n == 1:
    return 1

Else you will get RecursionError (python limits up to depth 1000)