Python Challenge level 2: “ocr”

Hint 1: recognize the characters. maybe they are in the book, but MAYBE they are in the page source.
Hint 2: find rare characters in the mess below (this hint is found looking at the source, and I stored it in file 02.txt for convinience). Looking for clues in whatever information you get will become a must from now on. By rare I understand ‘few appearences’, not neccesarily strange characters:

mess = open("02.txt").read()
dict = {}
for ch in mess:
    dict[ch] = dict.get(ch, 0) + 1
print "".join(ch for ch in mess if dict[ch] == 1)
taher@borg:~/src/python_challenge$ python 02.py
equality

Well. Up to Level 3.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

9 Comments »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>