You are here : python_2stringstringtitle

string.title() - string

             

The method title() returns a copy of the string in which first characters of all the words are capitalized.


  • NA


Syntax

str.title();


Example

#!/usr/bin/python

str = "this is string example....wow!!!";
print str.title()


Output / Return Value

When we run above program, it produces following result −


This Is String Example....Wow!!!


Limitations


Alternatives / See Also


Reference