Answers for "capitalize first letter of a string in python"

0

capitalize first letter of each word python

# Use title() to capitalize the first letter of each word in a string.
name = "elon musk"
print(name.title())
# Elon Musk
Posted by: Guest on June-13-2021

Code answers related to "capitalize first letter of a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language