Archive for September, 2007

Python Challenge level 3: “re”

Level 3 is the last of these initial text processing problems. Everything quite easy for now. Hint 1: One small letter, surrounded by EXACTLY three big bodyguards on each of its sides. #!/usr/bin/env python import re mess = open(“03.txt”).read() print ”.join(re.findall(‘[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]‘, mess)) linkedlist From linkedlist.html we’re sent to linkedlist.php, and up to Level 4.

Read the rest of this entry »

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 [...]

Read the rest of this entry »

Python Challenge level 1: “what about making trans?”

Level 1 gets a bit more interesting. Hint 1: k->m, o->q, e->g import string src = string.lowercase[:26] dst = string.lowercase[2:26] + ‘ab’ trans = string.maketrans(src, dst) text = “g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr’q ufw rfgq rcvr gq qm [...]

Read the rest of this entry »

Python Challenge level 0: “warming up!”

I recently discovered the Python Challenge web site. An interesting way to pick up a programming language. It claims to be the first programming riddle on the net, and I have been told that it’s shaped after another onlin games that predates this one by more than a year, notprOn. It turns out the Python [...]

Read the rest of this entry »