Showcase

FizzBuzz in Python

Python keeps the rule set concise while still making the ordering easy to read.

def fizz_buzz(limit=100):
    for number in range(1, limit + 1):
        if number % 15 == 0:
            print("FizzBuzz")
        elif number % 3 == 0:
            print("Fizz")
        elif number % 5 == 0:
            print("Buzz")
        else:
            print(number)


fizz_buzz()