[pyar] [OT] Solucion de la taza...

Tordek kedrot en gmail.com
Lun Nov 19 17:22:53 ART 2012


On 17/11/12 21:54, Marcelo Martinovic wrote:
> Buenas....
> Para aquellos curiosos que se pregunten que es el codigo de la taza:
>
>
> s = [0x4d, 0x53, 0x41, 0x20, 0x3c]
>
> h = [0x33, 0x20, 0x50, 0x79, 0x74]
>
> e = [0x68, 0x6f, 0x6e, 0x20, 0x2d]
>
> l = [0x20, 0x72, 0x72, 0x68, 0x68]
>
> L = [0x40, 0x6d, 0x73, 0x61, 0x2e]
>
> c = [0x63, 0x6f, 0x6d, 0x2e, 0x61]
>
> o = [0x72, 0x20, 0x2d, 0x20, 0x6a]
>
> d = [0x6f, 0x69, 0x6e, 0x20, 0x75]
>
> E = [0x73, 0x20, 0x21, 0x21, 0x21]
>
>
> msg = ''
>
>
> for li in map(lambda x: [chr(y) for y in x], [s, h, e, l, L, c, o, d, E]):
>
> for ch in li:
>
> msg += ch
>
>
> print(msg)
>
>
> # solucion :
>
> # MSA<3 Python - rrhh en msa.com.ar - join us !!!
>
>
> Saludos !!!
>

''.join(''.join(chr(y) for y in x) for x in [s, h, e, l, L, c, o, d, 
E]))

(Perdón, pero mi OCD no me deja usar for cuando se puede acortar.)

-- 
Guillermo O. «Tordek» Freschi. Programador, Escritor, Genio Maligno.
http://tordek.com.ar :: http://twitter.com/tordek



More information about the pyar mailing list