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

1 Answer

0 votes
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

0 votes
Dec 19, 2019 in Python