[Tutor] methods split and join in sequence

Andre Engels andreengels at gmail.com
Sat Jan 31 16:59:09 CET 2009


On Sat, Jan 31, 2009 at 4:09 PM, David <ldl08 at gmx.net> wrote:
> Dear list,
>
> many thanks for all your help - much appreciated.
> Today I have continued reading Harrington, and produced the following code,
> which works flawlessly.
> I wonder, though, how I could join all the supplied words with underscores
> _without_ making use of split first? This I didn't manage.
>
> Thanks for your ideas!


seq.replace(' ','_')


-- 
André Engels, andreengels at gmail.com


More information about the Tutor mailing list