a python puzzle
Michal Wallace
sabren at manifestation.com
Wed Sep 25 18:21:56 EDT 2002
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!
> but i don't know if i need free webhosting :-)
Hahaha. Well, if you change your mind, just let me know. :)
Cheers,
- Michal http://www.sabren.net/ sabren at manifestation.com
------------------------------------------------------------
Switch to Cornerhost! http://www.cornerhost.com/
Low Priced, Reliable Blog Hosting, With a Human Touch. :)
------------------------------------------------------------
More information about the Python-list
mailing list