<gh_stars>10-100
"""Fizz Buzz Calculation, by <NAME> <EMAIL>
Fizz Buzz is a game where you count up from 1, substituting "fizz" for
multiples of 3, "buzz" for multiples of 5, and "fizzbuzz" for multiples
of 3 and 5.
More info at: https://en.wikipedia.org/wiki/Fizz_buzz
Tags: tiny, beginner, math"""
__version__ = 0
import time

print('''Fizz Buzz Calculation, by <NAME> <EMAIL>
Fizz Buzz is a game where you count up from 1, substituting "fizz" for
multiples of 3, "buzz" for multiples of 5, and "fizzbuzz" for multiples
of 3 and 5.

This program plays fizz buzz until you press Ctrl-C to quit.
''')
input('Press Enter to begin...')

number = 1
while True:  # Main program loop.
    if number % 3 == 0 and number % 5 == 0:
        # The number is evenly divisible by 3 and 5, so print "FizzBuzz":
        print('FizzBuzz', end=' ')  # Don't print a newline at the end.
    elif number % 3 == 0:
        # The number is evenly divisible by 3, so print "Fizz":
        print('Fizz', end=' ')  # Don't print a newline at the end.
    elif number % 5 == 0:
        # The number is evenly divisible by 5, so print "Buzz":
        print('Buzz', end=' ')  # Don't print a newline at the end.
    else:
        # The number isn't evenly divisible by 3 or 5, so print it:
        print(number, end=' ')  # Don't print a newline at the end.

    number += 1  # Move on to the next number.
    print(end='', flush=True)  # Flush to make numbers appear.
    time.sleep(0.25)  # Slight pause.

print()  # Print a newline at the end.
