FizzBuzz of the day

Like many pieces of code, there is always a story behind it.

Your FizzBuzz solutions of the day – using operator precedence to get a result

1for num in xrange(1,101):
2    print 'Fizz' if not num % 3 else '' + 'Buzz' if not num % 5 else '' or num

Or on one line.

1print '\n'.join('Fizz' if not i % 3 else '' + 'Buzz' if not i % 5 else '' or str(i) for i in range(1,101))