Question: Write a Python program with a function called listletters ( text ) whose parameter text is a string and returns a dictionary with the key
Write a Python program with a function called listletterstext whose parameter text is a string and returns a dictionary with the key as the letter and the value as the number of times each letter appears in the text string. Note: function is case sensitive so H and h are counted as two different letters.
Example listlettersBanana should return:
B:a:n:
Example listlettersHow much wood would a woodchuck chuck if a woodchuck could chuck wood? should return:
H: o: w: : m: u: c: h: d: l: a: k: i: f:
# Write your program here
def listletterstext:
pass
printlistlettersBanana:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
