0 like 0 dislike
8 views
What does the Title() method do in Python?
in Python Coding by Wooden (1.3k points) | 8 views

1 Answer

0 like 0 dislike
Best answer

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

 

 

by Wooden (1.3k points)

Related questions

0 like 0 dislike
0 answers
Welcome to MathsGee Skills Question and Answer Bank, a platform, where you can ask study questions and receive answers from other members of the community. Help is always 100% FREE!
MathsGee Q&A is the knowledge-sharing community where millions of students and experts put their heads together to crack their toughest homework questions.

Enter your email address:

[consumerlti id="python_coding"]