Python Challenge level 5: “peak hell”
Hint 1: pronounce it
Fact 1: there is a refference to a file named banner.p in the html source, so we’ll download it and see
Fact 2: once depickled, it looks like a run-length encoding
import urllib,pickle url='http://www.pythonchallenge.com/pc/def/banner.p' obj=pickle.load(urllib.urlopen(url)) for line in obj: print ''.join(map(lambda pair: pair*pair, line))
The output, in a pretty *nix banner command fashion, is:
And that is Level 6.