We can reverse the order of the items in a list using slicing.
So let's see how this can be done list 1 0.
So the first index number indicates from there the slicing should begin the slicing should begin from
the first index number because we want to reverse all of the numbers in the list.
So this can be 0 0 or can be left blank.
Next the second index number should also be left blank.
This means slicing should at the end of the list.
So let's leave the second index numbered blank.
Next as the straight parameter the stride parameter should considered element in list 1 from the end
of the list under the element added first position.
So the straight parameter should be minus 1.
This means that all of the elements in list 1 from the end of the list are counted.
During slicing.
So in this case the output would be 6 by four three two and one.
So let's see this in the Jupiter notebook.
So here we have the list a LSD one which contained these elements.
So in order to reverse the items in the list A list is one let's use slicing.
A list you 1 and in square brackets.
The first index number should be blank not a token to the item beginning from the 0 at position.
The second index number should also be blank and then destroyed.
Parameters should be minus 1 to consider items from the end of the list to the element in the 0 8 position.
That is indeed the worst ordered.
So as you can see the list has been reversed the order of items in the list has been reversed.