loading...

re: 10 Awesome Pythonic One-Liners Explained VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I agree, this increases readability even more! Thank you. Is there any other benefit in using list comprehensions instead of the (specially made fo...
 

map returns a map object that you then turn into a list. Readability. There are other comprehensions that follow naturally from list comprehensions to generate, for example, dicts, sets and iterators.

Code of Conduct Report abuse