List index question

Fredrik Lundh fredrik at pythonware.com
Wed Dec 7 15:48:08 EST 2005


"questions?" wrote:

>I want to do list index function.
>>>> y=['1','2','3','4']
>>>> y
> ['1', '2', '3', '4']
>>>> y.index['2']

make that:

    >>> y.index('2')

</F> 






More information about the Python-list mailing list