Hi;

I'm trying to insert XYZ before a keyword in a string. The first and
the last occurence of hello in the string t1 (t1="hello world hello.
hello \nwhy world hello") are keywords. So after the insertion of XYZ
in this string, the result should be t1 = "XYZhello world hello. hello
\nwhy world XYZhello"

The python doesn't supports t1[keyword_index]="XYZhello" (string
object assignment is not supported). How do I get to this problem? Any
sugguestions?

-a.m.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to