python coding contest

Mark Dickinson dickinsm at gmail.com
Sat Dec 31 02:24:01 CET 2005


Here's a variant of André's brilliant idea that's
119 characters long, and fully printable:

j=''.join;seven_seg=lambda z:j(j('   _  | |_ _|_|'
[ord('^r|=Zm.:v\r'[int(a)])%u*2:][:3]for a in z)
+"\n"for u in(3,7,8))

Mark



More information about the Python-list mailing list