Dec 14, 2019 in Python
Q: What Does The Title() Method Do In Python?

1 Answer

Dec 14, 2019

Python provides the title() method to convert the first letter in each word to capital format while the rest turns to Lowercase.


str = 'lEaRn pYtHoN'


The output:

Learn Python

Now, check out some general purpose Python interview questions.

Click here to read more about Python
Click here to read more about Insurance

Related questions

Dec 19, 2019 in Python
Aug 29 in Python
Dec 22, 2019 in Python