Category python-functional-programming

Python lazy evaluation

Python Lazy Evaluation. Functional programming is efficient because it defers computation until it’s needed. Lazy (also known as “non-strict”) evaluation is very important, and Python has built-in support for it. In Python, the logical operators and, or, and if-then-else are…