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
Assuming you want field b for the objects in a list named objects do this:
b
objects
[o.b for o in objects]