[Tutor] Errr...Capitalizing Words

Bruce Sass bsass@freenet.edmonton.ab.ca
Fri, 16 Feb 2001 01:51:13 -0700 (MST)

> What I want to do with Python is take the first letter of each sentance and
> capitalize it. By looking into the string library I've found the
> string.capitalize() function. This only seems to work if you know the word
> you're trying to use. Then string.capwords() will capitalize each word
> instead of just the first one.
> Can anyone point me in the right direction for this?

string.capitalize(a_sentence) works, once you split the text into

- Bruce