Images can be described as a 3D list.
# This image has only one white pixel:
[
[[255, 255, 255]]
]
# This one is a 2 by 2 black image:
[
[[0, 0, 0], [0, 0, 0]],
[[0, 0, 0], [0, 0, 0]]
]
Your task is to create a function that takes a 3D list representation of an image and returns the inverse of that.
For example, white becomes black, black becomes white, etc.
invert([
[[255, 255, 255], [255, 255, 255]],
[[255, 255, 255], [255, 255, 255]]
]) ➞ [
[[0, 0, 0], [0, 0, 0]],
[[0, 0, 0], [0, 0, 0]]
]