Your question is Count Letters in a String. 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.
ZoomInfo SalesOS processes text fields that may contain names, labels, punctuation, and numeric identifiers. Write a function that counts each English alphabet character in a given string, treating uppercase and lowercase forms as the same character.
Return a dictionary containing only the letters that appear, with keys in alphabetical order. Ignore whitespace, digits, punctuation, and any character outside the English alphabet. The result must be produced with a single left-to-right scan of the input.
Implement count_alphabets(text).
text, a string containing ASCII letters, digits, whitespace, and punctuation.{} when no English letters appear.def count_alphabets(text):