Python Challenge level 7: “smarty”
Level 7 needs the Image module. Fact 1: The PNG file has a weird grey area, so the information must be encoded there. import Image im = Image.open(“oxygen.png”) print “Image info:”,im.format, im.size, im.mode #we’ll limit the grey zone y_begin = 0 while True: p = im.getpixel((0, y_begin)) if p[0] == p[1] == p[2]: break y_begin [...]
Read the rest of this entry »