Earlier quoted context omitted.
FizzBuzz comes from a game for six to eight year olds, who also don't understand modulus. That's part of the reason it is such a great problem: they fact that you realize "Hey, this is a whole lot easier with modulus" demonstrates that you can reason abstractly. You certainly don't need a mod operator to make it work -- if you're capable of writing a function, you can write divides_evenly_by_3(int number) using facts…
My Python answer for the second question, where `post` is patrio11's post as input: from collections import defaultdict from string import ascii_letters d= collections.defaultdict(int) for letter in post: d[letter] += 1 print [letter for letter in sorted(d, key=d.get, reverse=True) if letter in ascii_letters][2] Any comments on improvement for readability or conciseness?
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]