On 08/12/2011 15:28, surya k wrote:
Well, we all know to know the value when we have the index of a list.
But how can we find it in the reverse way... say a listl=[1,2,3,4]
l[0]=1.but how can I find its address with its value 1 ??
help ([])
...
index(...)
L.index(value, [start, [stop]]) -> integer -- return first index
of value.
Raises ValueError if the value is not present.
TJG
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor