Question: 2- (50 points) Write a Python script to get a sentence and a letter from user. It then needs to: Find any word in the
2- (50 points) Write a Python script to get a sentence and a letter from user. It then needs to: Find any word in the sentence that contains the letter and shows how many times the letter appeared in the word. Prints out how many of the letter exists in the whole sentence. For example: Type a sentence: I would like to introduce you to Mr. Jacobson. What letter are you looking for? 'would' has 1 'o' 'to' has 1 'o' 'introduce' has 1 to you' has 1 'o 'to' has 1 'o' Jacobson.' has 2'o' Totally, there are 7 'o'(s) in your sentence
Step by Step Solution
There are 3 Steps involved in it
To solve this problem create a Python script that performs the required tasks Heres how you can do i... View full answer
Get step-by-step solutions from verified subject matter experts
