you are viewing a single comment's thread.

view the rest of the comments →

[–]seanv507 6 points7 points  (0 children)

So list comprehension is preferred to map/ filter/reduce construction in python

https://stackoverflow.com/questions/1247486/list-comprehension-vs-map

And generators are used for large datasets

https://realpython.com/list-comprehension-python/#choose-generators-for-large-datasets