Understanding Least Astonishment and Mutable Default Arguments in Python
Least Astonishment PrincipleThis principle, sometimes referred to as the Principle of Surprise Minimization, aims to make a programming language's behavior predictable and intuitive for users