I think it is kinda dumb, but the description of
str.capitalize
does explicitly say this:Help on method_descriptor: capitalize(...) S.capitalize() -> str Return a capitalized version of S, i.e. make the first character have upper case and the rest lower case. >>>This means it is not the right tool (neither is
str.title
as it also changes the rest of the string).>>> txt[0].upper() + txt[1:] 'The TIME is Noon.' >>>