responding value we have used mapping unpacking to convert the mapping into key-value arguments for the str format(method although named tuples can be very convenientin we introduce object-oriented programmingand there we will go beyond simple named tuples and learn how to create custom data types that hold data items and that also have their own custom methods |lists string slicing and striding list is an ordered sequence of zero or more object references lists support the same slicing and striding syntax as strings and tuples this makes it easy to extract items from list unlike strings and tupleslists are mutableso we can replace and delete any of their items it is also possible to insertreplaceand delete slices of lists the list data type can be called as functionlist()--with no arguments it returns an empty listwith list argument it returns shallow copy of the argumentand with any other argument it attempts to convert the given object to list it does not accept more than one argument lists can also be created without using the list(function an empty list is created using empty brackets[]and list of one or more items can be created by using comma-separated sequence of items inside brackets another way of creating lists is to use list comprehension-- topic we will cover later in this subsection shallow and deep copying since all the items in list are really object referenceslistslike tuplescan hold items of any data typeincluding collection types such as lists and tuples lists can be compared using the standard comparison operators (=>)with the comparisons being applied item by item (and recursively for nested items such as lists or tuples inside lists given the assignment [- "kilo" " "["ram" "echo"] ]we get the list shown in figure [- [- [- [- [- [- - 'kilo ' ['ram' 'echo' [ [ [ [ [ [ figure list index positions and given this listlwe can use the slice operator--repeatedly if necessary--to access items in the listas the following equalities showl[ = [- =- [ = [- ='kilol[ ][ = [- ][ =' list comprehensions