Re: python coding contest



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

.



Relevant Pages

  • Re: python coding contest
    ... >> 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 ... > isn't the word 'input' a special word anyway??? ...
    (comp.lang.python)
  • Re: python coding contest
    ... 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. ...
    (comp.lang.python)