On Fri, Feb 18, 2011 at 3:28 PM, Kenneth Gonsalves
<law...@thenilgiris.com> wrote:
> On Fri, 2011-02-18 at 15:16 +0530, Sudharshan S wrote:
>> On Fri, Feb 18, 2011 at 1:04 PM, Kenneth Gonsalves
>> <law...@thenilgiris.com> wrote:
>>
>> > In fact, I cannot really imagine using a immutable list.
>>
>> Its called as a tuple :P.
>
> and a horrible thing it is too - you have to write the whole thing out
> by hand and cannot programatically construct it.

Not all the time we need to be in hand. We can too construct tuple via
programatically.
example

>>> a = (1,2,3,4)
>>>b=(5,6,7,8)
>>>c = a+b
>>>c
(1,2,3,4,5,6,7,8)

which gives new tuple.

Thus we create tuple programatically. But we cannot modify elements of
tuple( say  c[2] =2).

-- 
Regards,
Sathishkumar D
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to