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
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