simply put, I just want an alternative to .pop that does not return the removed element and also takes an index for parameters.
To give an example, I enter this code:
[1, 2, 3].pop(0)
but it gives me this as an output:
[1]
what I want as an output is [2, 3] and not [1].
is there a simple way of doing this?
>Solution :
You can also use list slicing method.
print([1,2,3][1:])