Skip to content

Instantly share code, notes, and snippets.

@orkaa
orkaa / abcbuzz.py
Last active September 8, 2015 22:01 — forked from uskudnik/abcbuzz.py
#!/usr/bin/env python
from collections import defaultdict
def abczzz(limit, abc={3: "fizzz", 5: "buzzz"}):
d = defaultdict(str)
table = []
for k, v in abc.items():
table += [{x:v for x in range(1, limit, k)}]
for t in table:
for k, v in t.items():