Answers for "python method to convert first character of each word to upper case"

4

capitalize first letter of each word python

"hello world".title()
'Hello World'
>>> u"hello world".title()
u'Hello World'
Posted by: Guest on May-27-2020
0

capitalize first letter of each word python

# Use title() to capitalize the first letter of each word in a string.
name = "elon musk"
print(name.title())
# Elon Musk
Posted by: Guest on June-13-2021

Code answers related to "python method to convert first character of each word to upper case"

Python Answers by Framework

Browse Popular Code Answers by Language