Question: Goal: Learn to replace characters in strings. Assignment: Recently, an epidemic of random capital letters has plagued our textbooks. Many phrases have random capitals in

Goal: Learn to replace characters in strings.
Assignment: Recently, an epidemic of random capital letters has plagued our textbooks. Many phrases have random capitals in the middle of the sentence or even words!
Write a program that prompts the user to enter some text, scan the text and fix the capitalization as follows:
The first letter of a sentence (after a period)should be capitalized;
The rest of the letters should be lowercase.
Note: Do not prompt the user with a message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem you can write a Python program that takes a string input from the user and formats it according to the specified rules The task ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!