potatogirl9300
potatogirl9300
18.08.2020 • 
Mathematics

Write a function $\verb#most_common_letter(string)#$ that determines the most commonly occurring letter in the input string. (If more than one letter is tied, it doesn't matter which one you return.) You should consider upper and lower case as the same letter. For example, $\verb#most_common_letter('This is a test of the function I have written')#$ should return 't', because 't' occurs 7 times, more than any other letter -- it occurs once as 'T' and 6 times as 't'.

Solved
Show answers

Ask an AI advisor a question