the value within the list value for examplespam[ ][ prints 'bat'the second value in the first list if you only use one indexthe program will print the full list value at that index negative indexes while indexes start at and go upyou can also use negative integers for the index the integer value - refers to the last index in listthe value - refers to the second-to-last index in listand so on enter the following into the interactive shellspam ['cat''bat''rat''elephant'spam[- 'elephantspam[- 'bat'the spam[- is afraid of the spam[- 'the elephant is afraid of the bat getting list from another list with slices just as an index can get single value from lista slice can get several values from listin the form of new list slice is typed between square bracketslike an indexbut it has two integers separated by colon notice the difference between indexes and slices spam[ is list with an index (one integerspam[ : is list with slice (two integersin slicethe first integer is the index where the slice starts the second integer is the index where the slice ends slice goes up tobut will not includethe value at the second index slice evaluates to new list value enter the following into the interactive shellspam ['cat''bat''rat''elephant'spam[ : ['cat''bat''rat''elephant'spam[ : ['bat''rat'spam[ :- ['cat''bat''rat'as shortcutyou can leave out one or both of the indexes on either side of the colon in the slice leaving out the first index is the same as using or the beginning of the list leaving out the second index is the same as using the length of the listwhich will slice to the end of the list enter the following into the interactive shellspam ['cat''bat''rat''elephant'spam[: