in Python by (31.6k points)
What Does The Title() Method Do In Python?

1 Answer

0 votes
by (32.2k points)

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.

Related questions

0 votes
asked Aug 29, 2020 in Python by Robindeniel (20.8k points)
0 votes
asked Jan 11, 2021 in Python by SakshiSharma (32.2k points)
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986 (31.6k points)