capitalize Description Returns a copy of the string in Capital case. Syntax str. capitalize() Return Value str Time Complexity #TODO Remarks For 8-bit strings, this method is locale-dependent. Example >>> 'foo'.capitalize() 'Foo' >>> 'Foo'.capitalize() 'Foo' >>> 'fOO'.capitalize() 'Foo' See Also upper lower title swapcase