This blog deals almost exclusively with my Python coding activities.
Friday, January 06, 2006
117 Outdone by a reader!
Markus Schramm from Germany has left a comment on my post Journey to 117 showing how one could shave yet one more character from the 117 character solution to the PyContest challenge. So, 116 it is!
Marius: Thanks for having checked it out; I had just done a quick check by doing seven_seg=.... print seven_seg('0123456789') (which looked ok), and assumed it was right.
The 116-character version doesn't pass the test suite (no trailing newline), so it is not a valid solution.
ReplyDeleteMarius:
ReplyDeleteThanks for having checked it out; I had just done a quick check by doing
seven_seg=....
print seven_seg('0123456789')
(which looked ok), and assumed it was right.