Skip to content

Home

Capitalize every word

Capitalizes the first letter of every word in a string.

def capitalize_every_word(s):
  return s.title()

capitalize_every_word('hello world!') # 'Hello World!'

More like this

Start typing a keyphrase to see matching snippets.