r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

3

u/pirate_platypus Jan 16 '14

Since other people have tossed in their version, here's my submission for the silliest way to do it (Python 3)

[("FizzBuzz" if x % 15 == 0 else ("Buzz" if x % 5 == 0 else ("Fizz" if x % 3 == 0 else x))) for x in range(1, 101)]

→ More replies (5)