the output is as followsyou might want to keep this ipython/jupyter notebook file around it' good referencebecause sometimes it can get confusing as to whether the slicing operator includes that element or if it' up to or including it or not so the best way is to just play around with it here and remind yourself negative syntax one more thing you can do is have this negative syntaxy the output is as followsby saying ythis means that want the last two elements in the list this means that go backwards two from the endand that will give me and because those are the last two things on my list adding list to list you can also change lists around let' say want to add list to the list can use the fyufoe function for thatas shown in the following code blockyfyufoe the output of the above code is as followsi have my list of if want to extend iti can say have new list here<>and that bracket indicates this is new list of itself this could be list implicityou knowthat' inline thereit could be referred to by another variable you can see that once do thatthe new list get actually has that list of appended on to the end of it so have new list by extending that list with another list