Skip to content

Instantly share code, notes, and snippets.

@zmaril
Last active December 15, 2015 02:59
Show Gist options
  • Save zmaril/5191387 to your computer and use it in GitHub Desktop.
Save zmaril/5191387 to your computer and use it in GitHub Desktop.
q = 'q = %r\r\ni = %r\n\nimport sys\nif (i%%3 == 0):\n\tsys.stdout.write("\\\"Fizz\\\""),\n\nif (i%%5 == 0):\n\tsys.stdout.write("\\\"Buzz\\\""),\n\n\
if (i%%3 != 0) and (i%%5 != 0):\n\tsys.stdout.write(str(i)),\n\n\nprint\n\nc = (q, ((i+1) %% 100))\nprint (q %% c)'
i = 1
import sys
if (i%3 == 0):
sys.stdout.write("\"Fizz\""),
if (i%5 == 0):
sys.stdout.write("\"Buzz\""),
if (i%3 != 0) and (i%5 != 0):
sys.stdout.write(str(i)),
print
c = (q, ((i+1) % 100))
print(q % c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment