Contact: aviboots(AT)netvision.net.il
41,231 questions
53,733 answers
573 users
nestedlist = [[1, 2, 3], [1, 5], [6, 1, 8, 9, 10], [1, 9, 10, 10], [1]] for sub_list in nestedlist: sub_list.reverse() print(nestedlist) ''' run: [[3, 2, 1], [5, 1], [10, 9, 8, 1, 6], [10, 10, 9, 1], [1]] '''