back
1 comments
Don't try the functional while block at home: Python doesn't handle tail calls efficiently, so you'll take up O(number of iterations) memory, and you'll exceed the allowed maximum recursion in long loops.