in Python by

Can you please help to clarify what does the Title() method do in Python Language?

1 Answer

0 votes
by

Python Language 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 Language'

print(str.title())

The output:

Learn Python Language

Now, check out some general purpose Python Language interview questions.

...