1 00:00:00,220 --> 00:00:05,650 We can reverse the order of the items in a list using slicing. 2 00:00:06,090 --> 00:00:11,020 So let's see how this can be done list 1 0. 3 00:00:11,990 --> 00:00:20,570 So the first index number indicates from there the slicing should begin the slicing should begin from 4 00:00:20,570 --> 00:00:25,690 the first index number because we want to reverse all of the numbers in the list. 5 00:00:26,030 --> 00:00:30,720 So this can be 0 0 or can be left blank. 6 00:00:30,830 --> 00:00:36,290 Next the second index number should also be left blank. 7 00:00:36,290 --> 00:00:40,710 This means slicing should at the end of the list. 8 00:00:40,820 --> 00:00:45,620 So let's leave the second index numbered blank. 9 00:00:45,620 --> 00:00:55,160 Next as the straight parameter the stride parameter should considered element in list 1 from the end 10 00:00:55,160 --> 00:00:59,240 of the list under the element added first position. 11 00:00:59,270 --> 00:01:05,850 So the straight parameter should be minus 1. 12 00:01:05,860 --> 00:01:12,750 This means that all of the elements in list 1 from the end of the list are counted. 13 00:01:12,880 --> 00:01:14,640 During slicing. 14 00:01:14,800 --> 00:01:26,990 So in this case the output would be 6 by four three two and one. 15 00:01:27,020 --> 00:01:30,080 So let's see this in the Jupiter notebook. 16 00:01:30,110 --> 00:01:36,840 So here we have the list a LSD one which contained these elements. 17 00:01:37,000 --> 00:01:44,330 So in order to reverse the items in the list A list is one let's use slicing. 18 00:01:45,060 --> 00:01:48,380 A list you 1 and in square brackets. 19 00:01:48,610 --> 00:01:58,960 The first index number should be blank not a token to the item beginning from the 0 at position. 20 00:01:59,050 --> 00:02:03,670 The second index number should also be blank and then destroyed. 21 00:02:03,670 --> 00:02:13,630 Parameters should be minus 1 to consider items from the end of the list to the element in the 0 8 position. 22 00:02:13,630 --> 00:02:16,980 That is indeed the worst ordered. 23 00:02:17,040 --> 00:02:26,600 So as you can see the list has been reversed the order of items in the list has been reversed.