That makes perfect sense. What happened was that the old tuple got replaced
with a new tuple (old + new items) and NOT changed cause tuple is
immutable.
Thanks HTH.
On Thu, Mar 8, 2012 at 4:53 PM, col speed wrote:
> On 8 March 2012 18:11, Sudip Bhattacharya wrote:
> >>>> s=
>>> s=(1,2,3)
>>> s=s+(4,5,6)
>>>s
(1,2,3,4,5,6)
The tuple has changed.
I thought I read that tuples are sequences (like lists), but they are
immutable - They can't be changed once created. Could someone explain
please ?
___
Tutor maillist - Tutor@pyt
we are
creating post - which the line nos is inserted "#%2i" ?
- What does '%2" mean ? - Is that 2 cursor spaces of width ?
Much thanks in advance...
--
Thanks and regards,
Sudip Bhattacharya
Mobile: +91 100 706
Home Land line: +91 11 22237561
Office Land line: