Answers for "python return string with first letter uppercase"

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
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 "python return string with first letter uppercase"

Python Answers by Framework

Browse Popular Code Answers by Language