Martin, I should’ve probably added it in the introduction to the article, but I shy away from .title() because it modifies the other letters if any of them are capitalized.

message = "hi my initials are JAH"
print(message.title()) # Hi My Initials Are Jah

But yes, otherwise .title() is a simpler way to do what was described in the article. Thanks for the contribution!!

Written by

Top writer with 1M+ views. Follow me at medium.com/code-85 and medium.com/growth-85

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store