tuple.index(item)
Jules Dubois
pbq51h702 at sneakemail.com
Mon Jul 11 21:30:09 EDT 2005
On Monday 11 July 2005 15:23, David Isaac <aisaac0 at verizon.net>
(<ArBAe.6857$Zy6.4547 at trnddc04>) wrote:
> Why don't tuples support an index method?
19:27:32:~ $ python
Python 2.3.5 (#2, Jun 19 2005, 13:28:00)
[GCC 3.3.6 (Debian 1:3.3.6-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> t = ('a', 'b', 'c')
>>> t[1]
'b'
>>>
> It seems natural enough ...
It does to me, too.
More information about the Python-list
mailing list