Python: 3 total functions for the following 1) 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...


Python: 3 total functions for the following


1) 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 say “goodbye guys”, the function returns “Goodbye Guys”.


2) a function that counts the number of occurrences of given character in a given string. For example, calling the function with


Count(‘j’, ‘just joshin’) returns 2. Note the function counts the character regardless of case.


3) a main function, allows the user to enter inputs for the above two functions, calls the function and displays the results.



Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here