News for hackers. Stuff that matters.
Re:What's the shortest FizzBuzz you can write? What language? by par on Saturday September 10, 2011 @11:07AM (#2981676)
I only worked on it for a few minutes and got 114 chars in Python

  for i in range(1,101):
   if i%15==0:print'FizzBuzz'
   elif i%3==0:print'Fizz'
   elif i%5==0:print'Buzz'
   else:print i
Now I am on the hunt to figure out how to do it in 56, there goes my afternoon.
Re:What's the shortest FizzBuzz you can write? What language? by jontsai on Saturday September 10, 2011 @03:35PM (#2982285)
Heh, shortest I could do in Python after several hours was 62

  for x in range(1,101):print'Fizz'*(x%3==0)+'Buzz'*(x%5==0)or x
Off by 6 bytes!