title() function: The title() method returns a string where the first character in every word is upper case. Like a header, or a title.
If the word contains a number or a symbol, the first letter after that will be converted to upper case.
capwords() function (from string module):
In Python, string capwords() method is used to capitalize all the words in the string using split() method.
Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join
join() function:
The join() method takes all items in an iterable (for example a list or tuple) and joins them into one string.
A string must be specified as the separator.
-------------------------
Python Tutorial for Beginners
Python Coding for Beginners
Python Programming for Beginners
Learn Python by Building Projects
Python Exercises and Practical Examples with solutions
Practice Python Online with solution
How to write a Python program
Python Programming Data Structure and Algorithm
Python Problem Solving
Python Game Tutorial
Python Game Programming
Python Game Development
Python Tips and Tricks
Tag
How to change case letters in python,
How to convert a character from uppercase to lowercase,
How to change the first letter to a capital in Python,
How to convert the first character of each word to uppercase in Python,
python capitalize first letter of every word in string,
how to capitalize specific letters in python,
capitalize first letter of each word,
python title function,
python capwords function,
write a program which capitalizes the first letter of each word in a sentence