For example, if I had the list:
list_a = [5, 2, 30, 6, 17]
The lists I want to obtain relate to the len(list_b), for example:
list_b = [40, 90]
So the lists I need to create are:
[5, 2]
[2, 30]
[30, 6]
[6, 17]
How can I slice or use a loop to do this?