How to extend a tuple of tuples?

Frank Millman frank at chagford.com
Fri Sep 9 06:13:11 EDT 2016


"Frank Millman"  wrote in message news:nqtlue$unj$1 at blaine.gmane.org... 

> Assume you have a tuple of tuples -

> a = ((1, 2), (3, 4))

> You want to add a new tuple to it, so that it becomes -

>     ((1, 2), (3, 4), (5, 6))

Thanks all.

The one I was looking for was 

    a += (5, 6),

I understand it now - makes perfect sense.

Frank





More information about the Python-list mailing list