Answers for "how to capitalize each word in python"

3

python capitalize all words

sample_text = "this is a sample string"
result = sample_text.title() # "This Is A Sample String"
Posted by: Guest on September-26-2021
2

python capitalize the entire string

message="hi"
print(message)
print(message.upper())
Posted by: Guest on January-09-2020

Code answers related to "how to capitalize each word in python"

Python Answers by Framework

Browse Popular Code Answers by Language