Capitalize the First Letter of Each Word in a String using Python

title method

text = 'this is a simple text'
result = text.title()

print(result)  # This Is A Simple Text

Leave a Comment

Cancel reply

Your email address will not be published.