''' Purpose: solves the pixie.py problem on test 3 ''' from PIL import Image def max_rgb( pixel ) : pass def tricolor( original ) : ow, oh = original.size nw, nh = ... new_image = Image.new( 'RGB', ( nw, nh ) ) for nx in range( 0, nw ) : for ny in range( 0, nh ) : nspot = (nx, ny ) ospot = ... opixel = original.getpixel( ospot ) npixel = ... new_image.putpixel( nspot, npixel ) return new_image if ( __name__ == '__main__' ) : import t3 t3.test_max_rgb() t3.test_tricolor()