Issue
How do i flip e2
so it becomes e4
?
input
e2 = [
[255,191,127],
[191,127, 63],
[127, 63, 0]]
output
e4 = [
[127, 63, 0],
[191,127, 63],
[255,191,127]]
Solution
The task is basically inverting a list
e4 = e2[::-1]
reverting also the elements would be
e4 = [el[::-1] for el in e2[::-1]]
Answered By - ME44
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.