title( ) Function
The title( ) Function is used to convert all the first letter of the words in the String, with an uppercase letter.
x = "hello beautiful world" y = x.title() print(y)
In the above code, we have declared a String 'hello beautiful world'.
Then we have used the 'title( )' function to convert all the first letter of the words of the String in uppercase.
And assign to variable 'y'.
And, we print the value of 'y'.
And we got the below output.