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:
Write nested for loops to modify checker to look as follows:
(Hint: use range
.)