Untangling Heavily Nested Python Code
Too Long; Didn't ReadNested code is considered to be hard to read and analyze. Such code requires more mental effort to understand what it does. The more nested code is, the higher its [cyclomatic complexity] It’s often thought of as an **anti-pattern** that should be avoided. One of the **refactoring techniques** is using guard clauses.