Skip to content

Instantly share code, notes, and snippets.

@arlyon
Created May 3, 2018 17:56
Show Gist options
  • Save arlyon/5d6593281826735937acec4a320ac520 to your computer and use it in GitHub Desktop.
Save arlyon/5d6593281826735937acec4a320ac520 to your computer and use it in GitHub Desktop.
Infinite Legible Fizzbuzz
from itertools import count; [print("fizz" * (not x % 3) + "buzz" * (not x % 5) or x) for x in count(1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment