## FizzBuzz

From: andrew cooke <andrew@...>

Date: Wed, 9 Apr 2014 19:12:15 -0300

I cannot find a nice way of writing this.  Either I need to repeat tests or I
need to mutate data.  This i smy best attempt:

for i in range(1,100):
msg = ''
for (n, word) in [(3, 'Fizz'), (5, 'Buzz')]:
if i % n == 0:
msg += word
if msg:
print(msg)

Although I doubt I would write that in an interview.

Andrew