insert chars into string

eight02645999 at yahoo.com eight02645999 at yahoo.com
Sat Mar 18 02:32:16 CET 2006


hi
is there a string method to insert characters into a string?
eg
str = "abcdef"
i want to insert "#" into str so that it appears "abc#def"

currently what i did is convert it to a list, insert the character
using insert() and then join them back as string.. 
thanks




More information about the Python-list mailing list