Python string title() method
Python String title() Method Description The title() method returns a copy of a string with the first letter of each word capitalized. Syntax The following is the syntax of the title() method − var.title() Parameters None Return Value This method…