Question: Write it in Python. Write a function, countNumOfEachDifferentLtrln(Sentence), which takes a Sentence consisting of space separated words with both lowercase and uppercase letters & which

Write it in Python.
Write a function, countNumOfEachDifferentLtrln(Sentence), which takes a Sentence consisting of space separated words with both lowercase and uppercase letters & which returns a list whose Oth element contains the number of occurrences of 'a' or of 'A', whose 1th element contains the number of occurrences of 'b' or of 'B', ... and whose 25th element contains the number of occurrences of 'z' or of 'Z'. Sentence may also contain non letters such as punctuation and numbers. Sample run: sentence = ' "Abcdarian is used by 3 or 4 of Henry's word experts to describe words or phrases that are in alphabetical order. Note that Python's ordering is not the same as conventional order.'" print('The letter count is: ') print() print(countNumOfEachDifferentLtrln(Sentence)) > > > The letter count is: [13, 4, 4, 8, 16, 1, 1, 7, 8, 0, 0, 3, 1, 10, 14, 4, 0, 16, 12, 12 1 1, 2, 1, 3, 0] ' > > >
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
