in Python by
Q:
What Does The Title() Method Do In Python?

▼ Show 1 Answer

0 votes
by

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

#Example

str = 'lEaRn pYtHoN'

print(str.title())

The output:

Learn Python

Now, check out some general purpose Python interview questions.

Python
Learn More with Madanswer

Related questions

0 votes
asked Dec 19, 2019 in Python by sharadyadav1986
...