get array element

Jason Scheirer jason.scheirer at gmail.com
Thu Apr 10 23:40:39 CEST 2008


On Apr 10, 10:22 am, "Bryan.Fodn... at gmail.com"
<Bryan.Fodn... at gmail.com> wrote:
> I have an array, and I would like to get the indice value.
>
> a = array([13,14,15,16])
>
> I would like something like a.getindice(15)
>
> If I want 15 it would return 2

a.index(15)



More information about the Python-list mailing list