[Tutor] query

invincible patriot invincible_patriot at hotmail.com
Sun Jan 31 22:21:09 CET 2010


Hi
can any one tel me how can i do indexing of individual characters in python
like if i hav a word eg david
a='david'
b=list(a)
# this will give ['d','a','v','i','d']
not i want to print the index of each character
how can i do that
please tel me

thanks

 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/196390708/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100131/60cc4cd9/attachment.htm>


More information about the Tutor mailing list