list.index() like...but returning lists (for avoiding '0' on multiples hits)
Gerardo Herzig -Departamento de Proyectos Especiales e Internet- Facultad de Medicina
gherzig at fmed.uba.ar
Mon Dec 22 15:37:46 EST 2003
Hi....i asume this is a veeeery usual question. I'm searching on python.org,
but their results is not giving me the answer that i looking for...So, here i
go...when i have myList = [2,4,2,0] ...myList.index(2) returns 0 (python
2.2)....There is a built-in function-method that returns [0,2]?
Well, sory if RTFM is the answer!!
--
Gerardo Herzig
Departamento de Proyectos Especiales e Internet
Facultad de Medicina
U.B.A.
More information about the Python-list
mailing list