In: Computer Science
(IN PYTHON)
Write a function that accepts a line of text and a single letter as input (case insensitive) and returns the number of times the letter is the last character of a word. Note your program should be able to handle different cases. And check if the user input is a single letter.
Here is the Solution in python.
i did it in my pycharm also with output. please go with image.
If you like my answer please give me a LIKE.
Solutuion: