Returns a copy of the string in Capital case.
str. capitalize()
str
#TODO
For 8-bit strings, this method is locale-dependent.
>>> 'foo'.capitalize() 'Foo' >>> 'Foo'.capitalize() 'Foo' >>> 'fOO'.capitalize() 'Foo'
upper
lower
title
swapcase