Question: Using python and while loop only, Write code that takes a string and a list of characters from the user, and returns the number of
Using python and while loop only,
| Write code that takes a string and a list of characters from the user, and returns the number of occurrences of any of the characters in the string. Below are some examples: hello and [l] will return 2 hello and [l,o] will return 3 hello and [q] will return 0 You may not use any built-in functions/methods besides len(). |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
