
Implement mirror_rows, a function that reverses every row of a 2D list.
mirror_rows([[8, 1, 4], [3, 5, 9]])Expected result
[[4, 1, 8], [9, 5, 3]]For your own tracking. Tests grade your code.
mirror_rows([[6], [], [7, 8]])Expected result
[[6], [], [8, 7]]Expected files
row_mirror.pyAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement mirror_rows, a function that reverses every row of a 2D list.
mirror_rows([[8, 1, 4], [3, 5, 9]])Expected result
[[4, 1, 8], [9, 5, 3]]For your own tracking. Tests grade your code.
mirror_rows([[6], [], [7, 8]])Expected result
[[6], [], [8, 7]]Expected files
row_mirror.pyAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.