I found this programming problem while looking at a job posting on SO. I thought it was pretty interesting and as a beginner Python programmer I attempted to tackle it. Howe
Here is way to find the most common character using a dictionary
message = "hello world" d = {} letters = set(message) for l in letters: d[message.count(l)] = l print d[d.keys()[-1]], d.keys()[-1]