Re: [Tutor] string.join()

2008-11-03 Thread Monte Milanuk
Thanks for the verification, folks. What had me stumped for a while was the first method was string.join(words[,sep]), and the new one showed str.join(words)... it wasn't immediately obvious (to me) that 'str' was in this case supposed to be the separator. Thanks again, Monte

Re: [Tutor] string.join()

2008-11-03 Thread Kent Johnson
On Mon, Nov 3, 2008 at 10:54 AM, Monte Milanuk <[EMAIL PROTECTED]> wrote: > Hello again, > > Just looking for clarification on a point: the book I'm using is written > around Python v.2.3, and has an exercise using string.join(). Specifically, > it said to use string.join(msgList, "") > After a

Re: [Tutor] string.join()

2008-11-03 Thread A.T.Hofkamp
Monte Milanuk wrote: Hello again, Just looking for clarification on a point: the book I'm using is written around Python v.2.3, and has an exercise using string.join(). Specifically, it said to use string.join(msgList, ""), the object of which was to take the list items in msgList and concatena

[Tutor] string.join()

2008-11-03 Thread Monte Milanuk
Hello again, Just looking for clarification on a point: the book I'm using is written around Python v.2.3, and has an exercise using string.join(). Specifically, it said to use string.join(msgList, ""), the object of which was to take the list items in msgList and concatenate them using a bla