write a python program that ask their user to enter their name in lowercase and then capitalize the first letter of each word of their name
Answers
Answered by
1
Answer:
A python program that ask their user to enter their name in lowercase and then capitalize the first letter of each word of their name.
Explanation:
# Python program to demonstrate the
# use of capitalize() function
# capitalize() first letter of string
# and make other letters lowercase
name = "geeks FOR geeks"
print(name.capitalize())
# demonstration of individual words
# capitalization to generate camel case
name1 = "geeks"
name2 = "for"
name3 = "geeks"
print(name1.capitalize() + name2.capitalize()
+ name3.capitalize())
Similar questions
Political Science,
2 months ago
English,
2 months ago
Math,
5 months ago
Environmental Sciences,
5 months ago
English,
11 months ago