Python Challenge level 16: “let me get this straight”
In level 16 the title says everything. Hint 1: there are 5 pink pixels in each row Fact 1: pink is color 195 in the image’s color index (says The Gimp). import urllib, Image,cStringIO def straighten(line): # five equal consecutive pink pixels are the clue idx=0 while line[idx]!=195: idx+=1 return line[idx:]+line[:idx] url = ‘http://huge:file@www.pythonchallenge.com/pc/return/mozart.gif’ im [...]
Read the rest of this entry »