Python Various Ways of Writing Loops
- List Comprehension
A function can also be defined on the fly.
zip is useful in a map of multivariable function.
As given in the reference link, one good example is
map and list comprehension
Ref. Great Python Tricks for avoiding unnecessary loops in your code
A Random #TIL# for You