13
2
pylint has no lower bound on the scores it will give your code. It uses the following metric to score code, with the maximum score being 10:
10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
With python 3.6, try and write a program that:
Outputs "Hello World" when run from the command line (i.e.
python script.py
), and no other output.Gets the lowest possible score from
pylint
, with default settings (i.e.pylint script.py
)Is strictly less than or equal to 128 bytes in size.
2If you took the PEP standard of 80 characters per line over ten lines, your maximum byte count would be 800. I would suggest something around 64 or 128 bytes. – Jonathan Frech – 2018-09-19T13:32:30.993
@JonathanFrech Good point. I've set to 128 bytes. Thanks for your help! – user82938 – 2018-09-19T13:33:19.437
2I suggest to change the title to
Python 3.6
instead ofpython
to improve challenge scope clarity. – Jonathan Frech – 2018-09-20T13:54:14.760