I have a list of objects:
[Object_1, Object_2, Object_3]
Each object has an attribute: time:
Object_1.time = 20 Object_2.ti
List comprehension is what you're after:
list_of_objects = [Object_1, Object_2, Object_3] [x.time for x in list_of_objects]