Question: Write a program with a function that accepts a string as an argument and returns a copy of the string with the first character of
Write a program with a function that accepts a string as an argument and returns a copy of the string with the first character of each sentence capitalized. The program should let the user enter a string and then pass it to the function, printing out the modified string.
Look carefully at the following sample run of the program. In particular, notice the wording of the prompt and the placement of spaces and punctuation. Your program's output must match this.
Sample Run User input shown in bold
Enter sentence to be capitalized:hello. my name is Joe. what is your name?
Hello. My name is Joe. What is your name?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
