Indexing strings

Fred andreas.aka.fred at gmail.com
Fri Mar 4 23:43:41 CET 2005


Hi everybody

I am searching for a possibility, to find out, what the index for a
certain lettyer in a string is.
My example:

for x in text:
   if x == ' ':
      list = text[:      # There I need the index of the space the
program found during the loop...

Is there and possibility to find the index of the space???
Thanks for any help!
Fred



More information about the Python-list mailing list