Skip to content

Instantly share code, notes, and snippets.

@eloraburns
Created July 12, 2022 19:39
Show Gist options
  • Save eloraburns/4fdb45695b0993e7e8bf7876723b3c2a to your computer and use it in GitHub Desktop.
Save eloraburns/4fdb45695b0993e7e8bf7876723b3c2a to your computer and use it in GitHub Desktop.
from collections import deque
def fizzbuzz(n):
return "f f bf fb f i i ui iu i z z zz zz z z z zz zz z b u z z "[n % 15 :: 15].strip() or n
if __name__ == "__main__":
deque((print(fizzbuzz(n)) for n in range(100)), maxlen=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment