Hi!

I have the following list

l= [ a, b, c]

Where a,b,c are objects created from one class, e.g. each has title
attribute.
What I want to have is a list of titles, e.g. [a.title, b.title, c.title]

Is there a quick way to do it? Or I should use loops (looping through each
element, and generating list)
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to