def fizz_buzz(n):
    """
    Fizz Buzz Game
    :param n: an integer
    :return: fizz if n % 3 == 0
             buzz if n % 5 == 0
             fizz buzz if n % 15 == 0
    """

    if n % 3 == 0 and n % 5 == 0:
        return "fizz buzz"
    elif n % 3 == 0:
        return "fizz"
    elif n % 5 == 0:
        return "buzz"
    else:
        return str(n)

for i in range(1,50):
    print(fizz_buzz(i))
def fizz_buzz(n):
    """
    Fizz Buzz Game
    :param n: an integer
    :return: fizz if n % 3 == 0
             buzz if n % 5 == 0
             fizz buzz if n % 15 == 0
    """

    if n % 3 == 0 and n % 5 == 0:
        return "fizz buzz"
    elif n % 3 == 0:
        return "fizz"
    elif n % 5 == 0:
        return "buzz"
    else:
        return str(n)

for i in range(1,50):
    print(fizz_buzz(i))
Fizz Buzz Game     :param n: an integer     :return: fizz if n % 3 == 0              buzz if n % 5 == 0              fizz buzz if n % 15 == 0