Skip to content

Instantly share code, notes, and snippets.

View slykar's full-sized avatar

Sylwester Kardziejonek slykar

View GitHub Profile
@slykar
slykar / fizzbuzz.py
Created March 30, 2020 18:21
Declarative FizzBuzz in Python
FROM = 1
TO = 100
DIVIDERS = [
(3, "Fizz"),
(5, "Buzz"),
(7, "Kazz") # or any other (div, word) pair
]
for n in range(FROM, TO):