Hello,
i have again very basic question in python string management.
I am not able to understand how find and index works and what do they
actually return.
>>> line = "this is varsha"
>>> print line.find("is")
2
>>> print line.rfind("is")
5
>>> print line.rfind("varsha")
8
>>> print line.index("varsha")
8
what does 2 in first line signifies... and why rfind gave 5 as an output...
can anybody pls explain me what exactly is interpreter tryin to return.....
--
Varsha Purohit,
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor