Copyright © tutorialspoint.com
This method returns a copy of the string in which first characters of all the words are capitalized.
str.title(); |
Here is the detail of parameters:
NA
It returns a copy of the string in which first characters of all the words are capitalized.
#!/usr/bin/python str = "this is string example....wow!!!"; print str.title(); |
This will produce following result:
This Is String Example....Wow!!! |
Copyright © tutorialspoint.com