Question: Writema function calledmissing_lettersthat takes a string parameter and returns a new string with all the letters of the alphabet that are not in the argument
Writema function calledmissing_lettersthat takes a string parameter and returns a new string with all the letters of the alphabet that arenotin the argument string. The letters in the returned string should be in alphabetical order.
Your implementation should use a histogram from thehistogramfunction. It should also use the global variablealphabet. It should use this global variable directly, not through an argument or a local copy. It should loop over the letters inalphabetto determine which are missing from the input parameter.
The functionmissing_lettersshould combine the list of missing letters into a string and return that string.
Write a loop over the strings in listtest_missand callmissing_letterswith each string. Print a line for each string listing the missing letters. For example, for the string "aaa", the output should be the following.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
