Advertisement
TakesxiSximada

Fizz Buzz one liner

Sep 22nd, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. python -c 'print("\n".join(["fizz",""][bool(i%3)]+["buzz",""][bool(i%5)] or str(i) for i in range(1,101)))'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement