I have a list of objects. Object has 3 string attributes. I want to make a list containing only a specific attribute from class.
Is there any built-in functions to d
The first thing that came to my mind:
attrList = map(lambda x: x.attr, objectList)