Example & Tutorial understanding programming in easy ways.

What does the title() method do in Python?

title() function in Python is use to make first letter capital of each and every word in the string.


Example:

s="my string is programming"

s.title()

//"My String Is Programming"

Read More →