How to get everything from the list except the first element using list slicing [duplicate] How to get everything from the list except the first element using list slicing [duplicate] python-3.x python-3.x

How to get everything from the list except the first element using list slicing [duplicate]


You can just do [1:].This will work on both versions.