Most bugs are not new. The same dozen mistakes account for most of the errors in beginners’ programs and a surprising share of experienced programmers’. Knowing them by sight turns an hour of puzzlement into a minute of recognition. This lesson is a field guide to them, with the quick checks that confirm each one, and then it deals with a different kind of problem: code that is correct but slow, and how to find out why before changing anything.
More lessons in Complete Python Programming