Loading topic
for and while loops, and work with lists and strings. It covers how a recursive function is put together and the mistakes that most often break one. Later chapters cover the call stack, step-by-step tracing, and depth limits in de5 min readn counts down to 0. Here the i6 min readRecursionError when the stack gets too deep. In this chapter you will learn what makes a call a tail call and what6 min readwhile loops. It also assumes you have read the earlier chapters on accumulators and on tail calls. You should know what a tail call is, and you should know that CPython does not optimize tail calls. Here you will learn a mechanical recipe for6 min readwhile loop. The tail-call trick only works when nothing is left to do after the 5 min read