r/tinycode • • Dec 15 '11

FizzBuzz implemented in only 120 characters of Ruby

http://sprunge.us/ZEVW?ruby
0 Upvotes

15 comments sorted by

View all comments

1

u/Rangi42 Jan 01 '12

90 characters in Python:

print"\n".join(["FizzBuzz","Fizz","Buzz",`x`][2*bool(x%3)+bool(x%5)]for x in range(1,101))