Question: Submit your Python program. It should include the following. The provided code foralphabet,test_dups,test_miss, andhistogram. Your implementation of thehas_duplicatesfunction. A loop that outputs duplicate information for
Submit your Python program. It should include the following.
- The provided code foralphabet,test_dups,test_miss, andhistogram.
- Your implementation of thehas_duplicatesfunction.
- A loop that outputs duplicate information for each string intest_dups.
- Your implementation of themissing_lettersfunction.
- A loop that outputs missing letters for each string intest_miss.
Also submit the output from running your program.
Your submission will be assessed using the following Aspects.
- Does the program include a function calledhas_duplicatesthat takes a string parameter and returns a boolean?
- Does thehas_duplicatesfunction call thehistogramfunction?
- Does the program include a loop over the strings intest_dupsthat callshas_duplicateon each string?
- Does the program correctly identify whether each string intest_dupshas duplicates?
- Does the program include a function calledmissing_lettersthat takes a string parameter and returns a string parameter?
- Does themissing_lettersfunction call thehistogramfunction?
- Does themissing_lettersfunction use thealphabetglobal variable directly?
- Does the program include a loop over the strings intest_missthat callsmissing_letterson each string?
- Does the program correctly identify the missing letters for each string intest_miss, including each string that "uses all the letters"?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
