Question
Write a function in Python 3.6 that receievs 2 strings as parameters. The first parameter is a sentence, while the second string will contain any
Write a function in Python 3.6 that receievs 2 strings as parameters. The first parameter is a sentence, while the second string will contain any combination of characters (letters, numbers, space, special characters, etc.). Your code should find which of the given characters in the second parameter appears most frequently in the sentence string. Case should not be ignored, so for example, A and a should be considered two different characters. If no characters appear, an empty string should be returned. If there is a tie between multiple letters, return the character that appears first.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started