On Oct 5, 3:05 pm, "Mark Tolonen" <[email protected]> wrote:
> "Chris Rebert" <[email protected]> wrote in message
>
> news:[email protected]...
>
> > Tuples are immutable (i.e. they cannot be modified after creation) and
> > are created using parentheses.
>
> Slight correction: tuples are created using commas.  Parentheses are only
> needed to disambiguate from other uses of comma:
>
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.>>> a=1,
> >>> a
> (1,)
> >>> a=1,2,3
> >>> a
>
> (1, 2, 3)
>
> -Mark

Awesome that has cleared it up for me, plus a bit more thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to