This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pprint | |
import functools | |
import itertools | |
import re | |
import time | |
import copy | |
SUBSQUARE_SIZE = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
def fb(i): | |
fba = ["", "Fizz", "Buzz"] | |
return fba[not (i % 3)] + fba[(not (i % 5)) * 2] | |
i = 1 | |
while i <= 200: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fb(n): | |
r = "" | |
if (n % 3 is 0): | |
r += "Fizz" | |
if (n % 5 is 0): | |
r += "Buzz" | |
return r | |
i = 1 |