Question: Implement the fix _ capitalization ( ) function. fix _ capitalization ( ) has a string parameter and returns an updated string, where lowercase letters
Implement the fixcapitalization function. fixcapitalization has a string parameter and returns an updated string, where lowercase letters at the beginning of sentences are replaced with uppercase letters. fixcapitalization also returns the number of letters that have been capitalized. Call fixcapitalization in the executemenu function, and then output the number of letters capitalized followed by the edited string. Hint : Look up and use Python functions islower and upper to complete this task. Hint : Create an empty string and use string concatenation to make edits to the string. pts
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
