How can i access the elements in list and previous list of nested lists?

Viewed 18
input = [['2021', 'what year', 'comparative'],
         ['2021', 'home', 'they'],
         ['2021', 'brought her', 'dead']]

#output should be like this :[comparative, home , they],[they,brought her, dead]

#if input n and output should be n-1

0 Answers
Related