Rotate RGB channels of an image represented as a nested list.
Constraints
Example
>>> image = [ ... [[255, 0, 0], [0, 255, 0]], ... [[0, 0, 255], [128, 64, 32]] ... ] >>> swap_channels(image) [[[0, 0, 255], [0, 255, 0]], [[255, 0, 0], [32, 64, 128]]] >>> # original unchanged >>> image[0][0] [255, 0, 0]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints