Question: In Python Write a function letterCount that receives two string s1 and s2 . The first string (s1) is a full sentence and the second
In Python
Write a function letterCount that receives two string s1 and s2. The first string (s1) is a full sentence and the second string(s2) is a word. The function checks the sentence(s1) for each
letter in the word(s2). For each letter in the word, it prints out the frequency of occurrence of that letter in the sentence.
Sample Input
s1: do you want to go to the movies tonight s2: qwerty
Expected Output
q0 w1 e2 r0 t6 y1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
