How to Get map() to Return a List in Python 3.x
Recap: Python’s map() function takes a function and an iterable—such as a list—as arguments. It then applies the function to each element in the iterable. It returns a map object. 🤨 But what if you don’t need a map object but a list? Old: In Python 2.x this was easy: the map() function simply returned …