You gotta love a 2-line python solution
Manolo MartÃnez
manolo at austrohungaro.com
Mon May 2 11:32:46 EDT 2016
On 05/02/16 at 11:24am, Larry Martell wrote:
> That reminds me of something I heard many years ago.
>
> Every non-trivial program can be simplified by at least one line of code.
> Every non trivial program has at least one bug.
>
> Therefore every non-trivial program can be reduced to one line of code
> with a bug.
Well, not really. Every non-trivial program can be reduced to one line
of code, but then the resulting program is not non-trivial (as it cannot
be further reduced), and therefore there are no guarantees that it will
have a bug.
M
More information about the Python-list
mailing list