I have a list like this,
l=[1,2,3,4]
Now I want to create other lists from l where next value will be disappeared every time, so the output will be
[[2,3,4], [1,3,4],[1,2,4], [1,2,3]]
Few more examples,
[1,2] --> [[2], [1]]
[10,32,15] --->[[32,15], [10,15], [10,32]]
I could do it using a for loop but am looking for a pythonic way to do it more efficiently.