Loading topic
for and while loops, and work with Python lists. The previous chapter showed repetition with loops. Here you will see how a function can repeat work by calling itself.2 min readwhile loops. It also assumes you know what a tail call is from the previous chapter. CPython does not perform tail-call optimization, so a tail-recursive function still uses one stack frame per call and can raise RecursionError. Tail recursi2 min read