Solutions for the Python Challenge

Show possible solutions for: All levels; level: previous, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, next

Possible solution for level 3

URI:
http://www.pythonchallenge.com/pc/def/equality.html
Log-in data:
Username: ; password:
Comment:
Possible Solution:
import re

data = "" # Again left out for clarity reasons. Get the data from
          # http://www.pythonchallenge.com/pc/def/equality.html

print "".join(re.findall("[^A-Z]+[A-Z]{3}([a-z])[A-Z]{3}[^A-Z]+", data))

(Download this source code.)

Code word for next challenge:
linkedlist

By Holger Thölking, May 29th, 2007.