a python puzzle
holger krekel
pyth at devel.trillke.net
Wed Sep 25 19:15:34 EDT 2002
Michal Wallace wrote:
> On Thu, 26 Sep 2002, holger krekel wrote:
>
> > OK. something like
> >
> > def decrypt(yourstring):
> > dedict = {'F': 'S', 'I': 'C', 'H': 'I', 'a': 't', 'c': 'f', 'b': 'v', 'e': 'n',
> > 'd': 'o', 'f': 's', 'i': 'c', 'h': 'i', 'k': 'p', 'j': 'h', 'm': 'l',
> > 'l': 'j', 'o': 'm', 'q': 'u', 'p': 'w', 's': 'b', 'u': 'z', 't': 'd',
> > 'w': 'y', 'v': 'x', 'y': 'e', 'x': 'a', 'z': 'g', 'g': 'k'}
> > return "".join([dedict.get(i,i) for i in yourstring])
> > returns
> ...
> > It's time to test your brainpower! I will give
> > six months of free web hosting to the first person
> > to solve this cryptogram. Can you figure it out?
>
>
> Hi Holger,
>
> Yep, that's it! I figured it would be easy to solve -
> especially given the python code, but I didn't expect a
> solution THAT quick. Next time I'm using RSA!
No problem :-)
Just letting out the python code would make it a bit harder.
One might even have to start to seriously program ...
> > but i don't know if i need free webhosting :-)
>
> Hahaha. Well, if you change your mind, just let me know. :)
cheers,
holger
More information about the Python-list
mailing list