martes, abril 06, 2010

python: 60's

import itertools,math,time
for z,w in itertools.imap(lambda x: (x % 12, (x / 12) % 5), itertools.count(0)): print ''.join(map(lambda x: x, ["\n".join([''.join([(math.hypot(x-10,y-10) < z and (math.hypot(x-10,y-10) > z/2 and '#$%&!'[w] or ' @'[(z/2)%2]) or ('.,:;+'[z%5])) for x in xrange(21)]) for y in xrange(21)]), time.sleep(0.05) or '']))

No hay comentarios.: