a guest Jan 2nd, 2019 238 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. screams = {3: 'fizz',5:'buzz',21:'yaow'}
  2. for i in range(100):
  3.     out = [screams[j] if (i % j == 0) else None for j in screams]
  4.     print(i if all([not o for o in out]) else "".join([o if o else "" for o in out]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand