On 15 Sep., 23:51, Ross <ros...@gmail.com> wrote:

> If I have a list of tuples:
>
>    k=[("a", "bob", "c"), ("p", "joe", "d"), ("x", "mary", "z")]
>
> and I want to pull the middle element out of each tuple to make a new
> list:
>
> myList = ["bob", "joe", "mary"]

if a tuple is OK: zip(*k)[1]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to