Blacking out checkers#

A 2D list checker is declared as

checker = [[(255,0,0), (255,255,255), (255,0,0), (255,255,255), (255,0,0)],
           [(255,255,255), (255,0,0), (255,255,255), (255,0,0), (255,255,255)],
           [(255,0,0), (255,255,255), (255,0,0), (255,255,255), (255,0,0)]]

which represents this image:

../../../_images/redcheck.png

Write nested for loops to modify checker to look as follows:

../../../_images/redcheck_black.png

(Hint: use range.)