[Tutor] creating a list of data . . .
Gus Tabares
gus.tabares at verizon.net
Tue Aug 26 02:35:08 EDT 2003
On Mon, 2003-08-25 at 21:29, Kirk Bailey wrote:
> Tuples are immutable. That means they cannot be changed, they can only be
> created or destroyed.
>
> So do so. Kill it. and create it. In the process of creating it anew, do so with
> the extra data thrown in. A temporary variable would probably be a good idea
> here to hold the old content of your tuple.
Hello,
Concatenation is perfectly legal:
>>> tuple = (1, 2, 3, 4)
>>> tuple = tuple + (5, 6, 7, 8)
>>> tuple
(1, 2, 3, 4, 5, 6, 7, 8)
>>>
HTH,
--
/Gus
More information about the Tutor
mailing list