Notes

Source: 📖 Effective Python item 5


Follow the DRY principle – Don't Repeat Yourself

Avoid repeating blocks of code and logical expressions. As soon as this occurs, consider turning the expressions involved into helper functions to improve readability.


See also: