How to make the first letter of every word in a string uppercase in python

Capitalizing the first letter of every word in a string ignores punctuation and leaves all other letters lowercase.

Solution for How to make the first letter of every word in a string uppercase in python : You can use string.capwords() to capitalize every word in the string Call string.capwords(s) from the string module to capitalize the first letter of every word in string s and covert all other letters to lowercase.


how-to-make-the-first-letter-of-every-word-in-a-string-uppercase-in-python