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

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

Or on one line.

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