[Tutor] position of an element in list:

Vineeth Rakesh vineethrakesh at gmail.com
Fri Jul 23 15:22:54 CEST 2010


Hello all,

How to return the position of a character in a string. Say I have str1 =
"welcome to the world" if i want to return the position of the first
occurrence of "o" how to do it?

Thanks
Vin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100723/52aa9be1/attachment.html>


More information about the Tutor mailing list