Python - String Method - title() Tutorial
It will return a string, where the first character of each word is uppercase and the rest characters will be in lowercase. which is similar to the title.
Example-
str1 = "PythON is a CRoss-platFORM obJECT-oriENTED PROgramming lanGUAGE"
print(str1.title())
Output-
Python Is A Cross-Platform Object-Oriented Programming Language