Note: If you got here while googling for answers to your homework, use this code and be welcome! With a few modifications it will work for fizzbuzz and the traveling salesman problem as well.
In Which I Mind the Gap has gotten a lot more response than I expected.  Apparently a lot of people, some of whom are inarguably much better programmers than me, are hypercritical of their own code. One of them questioned whether he had any taste at all, and I wrote this in response: