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=' _ | ||_| | | _ _||_ _ _| _| |_| | _ |_ _| _ |_ |_| _ | | _ |_||_| _ |_| _|' def seven_seg(x): return '\n'.join([''.join([c[int(d)*9+p:int(d)*9+p+3] for d in x]) for p in (0,3,6)]+['']) en jullie? -- Guyon Morée [EMAIL PROTECTED] http://gumuz.looze.net _______________________________________________ Python-nl mailing list Python-nl@python.org http://mail.python.org/mailman/listinfo/python-nl