Python String Module - JournalDev
www.journaldev.com › 23788 › python-string-modulePython string module contains a single utility function – capwords (s, sep=None). This function split the specified string into words using str.split (). Then it capitalizes each word using str.capitalize () function. Finally, it joins the capitalized words using str.join (). If the optional argument sep is not provided or None, then leading ...
Python String Module - JournalDev
https://www.journaldev.com/23788/python-string-modulePython string module contains a single utility function – capwords (s, sep=None). This function split the specified string into words using str.split (). Then it capitalizes each word using str.capitalize () function. Finally, it joins the capitalized words using str.join (). If the optional argument sep is not provided or None, then leading ...