ata comments on Open Thread: March 2010, part 2 - Less Wrong

4 Post author: RobinZ 11 March 2010 05:25PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (334)

You are viewing a single comment's thread. Show more comments above.

Comment author: ata 19 March 2010 03:42:40AM *  0 points [-]

I think anyone who applies to a programming job and can't write this (in whatever language) deserves something worse than being politely turned down.

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