Your question is Count Letter Frequencies. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
SWIFT message fields can contain letters, spaces, digits, and punctuation. Implement a function that counts how many times each alphabetic letter appears in a message, ignoring case and non-letter characters.
Return the counts as a dictionary whose keys are lowercase letters. The keys must appear in alphabetical order in the returned dictionary. Include only letters that occur at least once.
message containing zero or more ASCII characters.def count_letter_frequencies(message):