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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here