On 20/06/07, Norman Khine <[EMAIL PROTECTED]> wrote: > My question is how to get all the words in the string to start with > capital letter?
Hmm, well the title() function is a new one to me :-) More generally, if we have raw = 'one two three', then I would have done it using raw.split(). i.e. capwords = [s.capitalize() for s in raw.split()] # this will give you a list of capitalized words capstr = ' '.join(capwords) # join them together, with spaces between -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor