Answers for "how convert first element of string capital letter using python"

6

how to capitalize first letter in python

# To capitalize the first letter in a word or each word in a sentence use .title()
name = tejas naik
print(name.title())    # output = Tejas Naik
Posted by: Guest on November-22-2020
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

python capitalize first letter of string without changing the rest

string[0].upper() + string[1:]
Posted by: Guest on October-29-2020

Code answers related to "how convert first element of string capital letter using python"

Python Answers by Framework

Browse Popular Code Answers by Language