Computer Science

Write a program to convert a string with more than one word into titlecase string where string is passed as parameter. (Titlecase means that the first letter of each word is capitalized.)

Python

Python String Manipulation

6 Likes

Answer

s = input("Enter a string: ")
s1 = s.title()
print(s1)

Output

Enter a string: python programming is fun
Python Programming Is Fun

Answered By

4 Likes


Related Questions