OT: Cryptography puzzle

David Fraser davidf at sjsoft.com
Tue Jun 1 08:57:56 EDT 2004


Christian Gudrian wrote:
> "A.M. Kuchling" <amk at amk.ca> schrieb:
> 
> 
>>and the
>>doubled 'dd' letters are probably 'ss' or 'll'.
> 
> 
> And what about the 'ss' in 'ssfd'?  I don't know many languages that allow
> words to start with two identical letters.  So either the encryption is a
> little more advanced than to just replace characters -- or it's a Scottish
> text. ;)

How eerie :-)

import sys
for line in sys.stdin:
   if len(line) > 2 and line[0] == line[1]:
     sys.stdout.write(line)

on standard English dictionary:

eel
eelgrass
eels
eerie
eerily
ooze
oozed

And say, Afrikaans, has a few more:

[root at scir Python]# ./dd.py < af/wordlist.iso-8859-1 | wc -l
3770



More information about the Python-list mailing list