Question: Create a Python program that asks the user to input a string and then prints out that string in Title Case. That is, the first
Create a Python program that asks the user to input a string and then prints out that string in Title Case. That is, the first letter of each word is uppercase and the remainder of the word is lowercase. If the entire word is two letters long, the entire word is lower case. The three letter words and, the, and not are all lowercase while all other three letter words are capitalized. The first word in the string is capitalized, no matter how long it is. So if the user enters the string the following string: the dog and the mouse fought over the piece of bread, and it was not a pleasant sight. Output : The Dog And the Mouse Fought Over the Piece of Bread, And it Was not a Pleasant Sight. Note* If sentence starts with and, the , or not it the word should still be capitalized.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
