String title returns first letter of word in capital and rest in lower cases. It is similar to proper function in excel.

How to use Str.Title() in Python:

As in below image we can see a is string with all letters in lower case and b is string with all letters upper case and lower case.when we apply str.title function to both string it results in first letter capital of string rest small.

how to use str.title in python
1.String title()

 

By SC

One thought on “Str.title”

Leave a Reply

Your email address will not be published. Required fields are marked *