On 12/27/05, Chris Niekel <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 27, 2005 at 08:29:26PM +0100, Guyon Mor?e wrote:
> > Ik zag net http://www.pycontest.net/ :
> >
> > Subject of the contest is to code the shortest possible python module
> > that converts decimal numbers to the seven-segment display
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Guyon Morée wrote:
> Het kortste (en lelijkste) waar ik op kom is:
>
> c=' _ | ||_| | | _ _||_ _ _| _| |_| | _ |_ _| _ |_ |_| _
> | | _ |_||_| _ |_| _|'
> def seven_seg(x): return
> '\n'.join([''.join([c[int(d)*9+p:int(d)*9+p+3] for d i
On Tue, Dec 27, 2005 at 08:29:26PM +0100, Guyon Mor?e wrote:
> Ik zag net http://www.pycontest.net/ :
>
> Subject of the contest is to code the shortest possible python module
> that converts decimal numbers to the seven-segment display format.
>
> Het kortste (en lelijkste) waar ik op kom is:
>
Ik zag net http://www.pycontest.net/ :
Subject of the contest is to code the shortest possible python module
that converts decimal numbers to the seven-segment display format.
Het kortste (en lelijkste) waar ik op kom is:
c=' _ | ||_| | | _ _||_ _ _| _| |_| | _ |_ _| _ |_ |_| _
|
On 27-dec-2005, at 12:11, Ron Speerstra wrote:
> Sorry, maar weet niet hoe ik dit anders moet doen! Ik heb
> verschillende mail's verstuurd die ik terug krijg omdat ik niet een
> een mailing list zit, maar wil er toch op wijzen, dat er een fout
> op uw side staat.
>
> Tevens vind ik de list
On 27-dec-2005, at 12:11, Ron Speerstra wrote:
> [66.6, 333, -1, 333, 1, 1234.5, 333] ...Klopt niet (66.6)
> moet zijn[66.594}
Ron, dit verschil (66.6 of 66.59enzovoort) is een (bekend)
technisch probleem van de manier waarop computers met floating-point
getallen
Sorry, maar weet niet hoe ik dit anders moet doen! Ik heb verschillende mail's
verstuurd die ik terug krijg omdat ik niet een een mailing list zit, maar wil
er toch op wijzen, dat er een fout op uw side staat.
Tevens vind ik de list heel interessant en wilde me eigelijk wel aanmelden.
Maar deze