I have a list of class objects, e.g.:
child1 = Child(Name = 'Max', height = 5.1, weight = 100)
child2 = Child(Name = 'Mimi, height = 4.1, weight = 80)
my_object_list = [child1, child2]
Is there a way to create a new list dynamically with one similiar attribute of each object as a one liner? I know how to do it in a for loop, that's why I am explicitely asking for a one liner.
desired result: my_new_list = ['Max', 'Mimi']
Many Thanks in advance