python coding contest

Claudio Grondi claudio.grondi at freenet.de
Mon Dec 26 15:21:41 EST 2005


Peter Otten wrote:
> Simon Hengel wrote:
> 
> 
>>>Is it necessary to keep the input parameter as 'input'? Reducing that to
>>>a single character drops the length of a program by at least 8
>>>characters. Technically it changes the interface of the function, so
>>>it's a little bogus, but test.py doesn't check. (Personally I prefer
>>>that if be illegal, but if it's legal I'll have to do it).
>>
>>You may change input to something more short, like x. Everything that
>>passes the test, has a good chance to be accepted.
> 
> 
> How good is "good" for
> 
> import test_vectors
> seven_seg = test_vectors.test_vectors.get
> 
> or code using the test suite in general?
> 
> Peter
> 
This started to remind myself about the story of the contest where the 
shortest program beeing able to output own source was the job to code.
The jury had a big trouble to justify why not give the prize to the one 
who posted an empty file ...

I am currently at 39 bytes following the requirements and the principle 
given above (my module passes the test). Anyone able to beat that?

Claudio



More information about the Python-list mailing list