Fred wrote:
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
Use the index method, e.g.: text.index(' '). What exactly do you want to do?
-pu -- http://mail.python.org/mailman/listinfo/python-list