concept ) function in category python
appears as: ) function

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
The
map()function is a lazy function, like therange()function we looked at earlier. It won’t create the values until you actually need them, as compared to a list comprehension, which will produce the resultinglistimmediately. I don’t personally tend to worry about the performance of the code as much as I do the readability. When I write code for myself, I prefer to usemap(), but you should write code that makes the most sense for you and your teammates.