Menu

gitpiper

capitalize_every_word python Code Snippet in 2022

stringbeginner

Last Updated: 27 November 2022

Capitalizes the first letter of every word in a string.

  • Use str.title() to capitalize the first letter of every word in the string.
def capitalize_every_word(s): return s.title()
capitalize_every_word('hello world!') # 'Hello World!'

python snippet similar to capitalize_every_word For You in November 2022

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2022 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️