[Tutor] string.title(): correct?
bob gailer
bgailer at gmail.com
Wed Aug 12 03:31:13 CEST 2009
Allen Fowler wrote:
> Hello,
>
> "He's a great guy".title()
>
> Gives me:
>
> "He'S A Great Guy"
>
>
> I expected:
>
> "He's A Great Guy"
>
> Did i miss something here?
>
The docs state:
"title( ) - Return a titlecased version of the string: words start with
uppercase characters, all remaining cased characters are lowercase."
It depends on the definition of "word".
--
Bob Gailer
Chapel Hill NC
919-636-4239
More information about the Tutor
mailing list