#!/Applications/anaconda/envs/Python3/bin


def main():
    # Test suite
    try:
        fizz_buzz(None)
    except TypeError:
        print('PASSED TypeError check')

    try:
        fizz_buzz(0)
    except ValueError:
        print('PASSED ValueError check')

    print('FizzBuzz 15:')
    fizz_buzz(15)

    return 0

def fizz_buzz(n):
    ''' Classic FizzBuzz implementation.
        Multiples of 3 => 'Fizz'
        Multiples of 5 => 'Buzz'
        Multiples of 3 and 5 => 'FizzBuzz'
    '''
    # Check input
    if type(n) is not int:
        raise TypeError
    if n <= 0:
        raise ValueError

    for i in range(1, n+1):
        if i % 3 == 0 and i % 5 == 0:
            print('FizzBuzz')
        elif i % 3 == 0:
            print('Fizz')
        elif i % 5 == 0:
            print('Buzz')
        else:
            print(str(i))

    return 0

if __name__ == '__main__':
    main()

@@ -260,24 +260,305 @@
 k')%0A%0A   
+ test_fizz_buzz = %5B%0A        '1',%0A        '2',%0A        'Fizz',%0A        '4',%0A        'Buzz',%0A        'Fizz',%0A        '7',%0A        '8',%0A        'Fizz',%0A        'Buzz',%0A        '11',%0A        'Fizz',%0A        '13',%0A        '14',%0A        'FizzBuzz'%0A    %5D%0A%0A    result = fizz_buzz(15)%0A    #
  print('
 FizzBuzz
@@ -553,39 +553,211 @@
 nt('
-FizzBuzz 15:')%0A    fizz_buzz(15
+fizz_buzz(15): %7B%7D'.format(result))%0A    for i, n in enumerate(test_fizz_buzz):%0A        if n != result%5Bi%5D:%0A            print('FAILED fizz_buzz test')%0A            return -1%0A    print('PASSED fizz_buzz test'
 )%0A%0A 
@@ -769,16 +769,17 @@
 turn 0%0A%0A
+%0A
 def fizz
@@ -916,16 +916,21 @@
 ples of 
+both 
 3 and 5 
@@ -1030,19 +1030,18 @@
   if n %3C
-= 0
+ 1
 :%0A      
@@ -1060,16 +1060,31 @@
 eError%0A%0A
+    fizzy = %5B%5D%0A
     for 
@@ -1149,29 +1149,36 @@
             
-print
+fizzy.append
 ('FizzBuzz')
@@ -1215,21 +1215,28 @@
         
-print
+fizzy.append
 ('Fizz')
@@ -1273,21 +1273,28 @@
         
-print
+fizzy.append
 ('Buzz')
@@ -1320,21 +1320,28 @@
         
-print
+fizzy.append
 (str(i))
@@ -1353,17 +1353,21 @@
  return 
-0
+fizzy
 %0A%0Aif __n

Edit fizzBuzz.py and tests