On Oct 19, 8:35 pm, James Mills <prolo...@shortcircuit.net.au> wrote:
> On Wed, Oct 20, 2010 at 10:16 AM, Daniel Wagner
>
> <brocki2...@googlemail.com> wrote:
> > My short question: I'm searching for a nice way to merge a list of
> > tuples with another tuple or list. Short example:
> > a = [(1,2,3), (4,5,6)]
> > b = (7,8)
>
> > After the merging I would like to have an output like:
> > a = [(1,2,3,7), (4,5,6)]
>
> What happens with the 8 in the 2nd tuple b ?

Ohhhh, I'm sorry! This was a bad typo:
the output should look like:
a = [(1,2,3,7), (4,5,6,8)]

Greetings,
Daniel
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to