Python Program to Reverse Every Kth row in a Matrix
Given a Matrix, the task is to write a python program to reverse every Kth row. Where K is some span value. Input : test_list = [[5, 3, 2], [8, 6, 3], [3, 5, 2], [3, 6], [3, 7, 4], [2, 9]], K = 4 Output : [[5, 3, 2], [8, 6, 3], [3, 5, 2], [6, 3], [3, 7, 4], [2, 9]] Explanation : Every 4th row is rev