Titlecasing a string with exceptions
There are a few problems with this. If you use split and join, some white space characters will be ignored. The built-in capitalize and title methods do not ignore white space. >>> ‘There is a way’.title() ‘There Is A Way’ If a sentence starts with an article, you do not want the first word of … Read more