How to Quickly Write Temporary Functions in Python

Or what the heck is a lambda function?

Peter Grant
Python in Plain English
5 min readApr 27, 2021

--

Image credit: Shahadat Rahman at Unsplash

Functions are an extremely common form of code organization, simplification, and clarification in Python. They provide several benefits such as:

  • By creating a command that can be reused over and over you can write it once, then use it repeatedly in several places. This shortens the length…

--

--

Water heating team leader at Lawrence Berkeley National Laboratory. Manages teams of 15+ people on multi-million dollar projects developing novel technologies.