Question 1: Note: This question has 2 steps. Step 1: Write a…
Question 1: Note: This question has 2 steps. Step 1: Write a function that takes two inputs: 1) a string consisting of a single letter (e.g., ‘e’) 2) a long string consisting of some letters (e.g., ‘HELLo WORld’) and counts how many times the single letter (1st input) occurs in the long string (2nd input). The function should ignore capitalization – i.e., uppercase ‘E’ should be counted as ‘e’, etc. The output of the function should be the frequency count of the letter. Step 2: Write a loop that iteratively calls the function you developed in the first step to count how many times each letter in a given list (e.g., ) occurs in the long string consisting of some letters (2nd input of Step 1). Below is a sample output after completing both steps. longString = ‘HELLo WORld’ aList = Output (after defining the function and running the loop): The letter a occurs 0 times in the long string. The letter e occurs 1 times in the long string. The letter o occurs 2 times in the long string.