Question : python capitalize first letter of each word in a string
Answered by : alii
>>> "hello world".title()
'Hello World'
>>> u"hello world".title()
u'Hello World'
Source : https://stackoverflow.com/questions/1549641/how-can-i-capitalize-the-first-letter-of-each-word-in-a-string | Last Update : Thu, 01 Jul 21
Question : capitalize the first letter of each word in python
Answered by : ismail-albatrookh
import camelcase
c = camelcase.CamelCase()
txt = "Welcome Dear ismail "
print(c.hump(txt))
Source : | Last Update : Fri, 02 Dec 22
Question : capitalize first letter of each word python
Answered by : comfortable-copperhead-ieujykk2vd2q
"hello world".title()
'Hello World'
>>> u"hello world".title()
u'Hello World'
Source : | Last Update : Wed, 03 Jun 20
Question : capitalize first letter of each word python
Answered by : timothy-wangwe
# Use title() to capitalize the first letter of each word in a string.
name = "elon musk"
print(name.title())
# Elon Musk
Source : | Last Update : Sun, 20 Jun 21
Question : capitalizing first letter of each word in python
Answered by : esin-shadrach
text = "this is an example text"
print(text.title())
Source : | Last Update : Tue, 16 Aug 22