Question: Write a function that accepts a string as an argument and returns a copy of the string with the first character of each sentence capitalized.
Write a function that accepts a string as an argument and returns a copy of the string with the first character of each sentence capitalized. For instance, if the argument is hello. my name is Joe. what is your name? the function should return the string Hello. My name is Joe. What is your name? The program should let the user enter a string and then pass it to the function. The modified string should be displayed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
