|
|
|
|
|
by follower
5717 days ago
|
|
Ah, your use of the collections module prompted me to read the docs for it (who would've guessed :) ) which leads to a revision of my other response: import string, collections
s = "your text here"
print collections.Counter([i for i in s.lower()
if i in string.letters]).most_common(3)[-1]
|
|