I just found a 125 character solution. It's actually faster and more readable than the 133 character solution (though it's still obscure.)
It depends on Python 2.4. If Python 2.3 compatibility is required for the contest, I have to add 4 characters. Shane [EMAIL PROTECTED] pycontest_01]$ wc -c seven_seg.py 125 seven_seg.py [EMAIL PROTECTED] pycontest_01]$ python test.py . ---------------------------------------------------------------------- Ran 1 test in 0.084s OK -- http://mail.python.org/mailman/listinfo/python-list