Today I Learned
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
mapand list comprehension
Ref. Great Python Tricks for avoiding unnecessary loops in your code