Dictionary in which the key is the first string of a list and the key is another dictionary, indicating how many times a letter is displayed

definitive count (s):
if len (s) == 0:
Return {}
otherwise:
Result = {}
End result = {}
for c in s:
for j in c:
If j in "abcdefghijklmnopqrstuvwxyz":
if result.has_key:
Result[j] + = 1
otherwise:
Result[j] + = 1
end result[c] = Result
Return final result

He tells me that he is wrong and that there is a keyerror with the h. An example of using the reputable function: finalCounting ([“hello”, “bye how are you”]) and would return:
{# Bye:: {# a:: 1, & b:: 1, e e #: 2, h h & # 39 ;: 1, &o #: 2, & r #: 1, & u #: 1, w w:: 1, & # 39; and & # 39 ;: 2}, & # 39; Hello & # 39 ;: {& # 39; h & # 39;: 1, & # 39; e & # 39 ;: 1, & # 39; l & # 39 ;: 2, & # 39; o & # 39 ;: 1}}