Hello,
I have some lists:
sp_0 = [1, 0, 3, 395, 399]
sp_1 = [1, 96, 11, 398]
sp_2 = [1, 0, 3, 10, 397]
sp_3 = [1, 0, 96, 130, 396]
sp_4 = [1, 0, 3, 395]
I need that the 1st elements will be removed (each time) in all lists if they are the same
Here are the iterations:
sp_0 = [1, 0, 3, 395, 399] => [0, 3, 395, 399] => [3, 395, 399]
sp_1 = [1, 96, 11, 398] => [96, 11, 398]
sp_2 = [1, 0, 3, 10, 397] => [0, 3, 10, 397] => [3, 10, 397]
sp_3 = [1, 0, 96, 130, 396] => [0, 96, 130, 396] => [96, 130, 396]
sp_4 = [1, 0, 3, 395] => [0, 3, 395] => [3, 395]
The red lists are the final results, how can I code this in less loops ?
Thanks
I have some lists:
sp_0 = [1, 0, 3, 395, 399]
sp_1 = [1, 96, 11, 398]
sp_2 = [1, 0, 3, 10, 397]
sp_3 = [1, 0, 96, 130, 396]
sp_4 = [1, 0, 3, 395]
I need that the 1st elements will be removed (each time) in all lists if they are the same
Here are the iterations:
sp_0 = [1, 0, 3, 395, 399] => [0, 3, 395, 399] => [3, 395, 399]
sp_1 = [1, 96, 11, 398] => [96, 11, 398]
sp_2 = [1, 0, 3, 10, 397] => [0, 3, 10, 397] => [3, 10, 397]
sp_3 = [1, 0, 96, 130, 396] => [0, 96, 130, 396] => [96, 130, 396]
sp_4 = [1, 0, 3, 395] => [0, 3, 395] => [3, 395]
The red lists are the final results, how can I code this in less loops ?
Thanks