Letter frequency: Difference between revisions

m
Line 154:
return results</lang>
 
Which eliminates the ungainly fiddling with ordinal values and offsets in function countletters of a previous example above. More importantly it allows the results to be more simply printed using:
 
<lang python>lettercounts = countletters(sourcedata)
Anonymous user