Menu

gitpiper

capitalize_every_word python Code Snippet in 2024

stringbeginner

Last Updated: 14 April 2024

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 April 2024

Subscribe to our Newsletter

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

© 2024 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! ✌️