type is similarbut it stores items by key instead of by position and does not maintain any reliable left-to-right order among its items both lists and dictionaries are mutableand so support variety of in-place change operations not available for stringsfor examplelists can be grown by append callsand dictionaries by assignment to new keys in the next we will wrap up our in-depth core object type tour by looking at tuples and files after thatwe'll move on to statements that code the logic that processes our objectstaking us another step toward writing complete programs before we tackle those topicsthoughhere are some quiz questions to review test your knowledgequiz name two ways to build list containing five integer zeros name two ways to build dictionary with two keys'aand ' 'each having an associated value of name four operations that change list object in place name four operations that change dictionary object in place why might you use dictionary instead of listtest your knowledgeanswers literal expression like [ and repetition expression like [ will each create list of five zeros in practiceyou might also build one up with loop that starts with an empty list and appends to it in each iterationwith append( list comprehension ([ for in range( )]could work heretoobut this is more work than you need to do for this answer literal expression such as {' ' ' ' or series of assignments like {} [' ' and [' ' would create the desired dictionary you can also use the newer and simpler-to-code dict( = = keyword formor the more flexible dict([(' ' )(' ' )]key/value sequences form orbecause all the values are the sameyou can use the special form dict fromkeys('ab' in and you can also use dictionary comprehension{ : for in 'ab'}though againthis may be overkill here the append and extend methods grow list in placethe sort and reverse methods order and reverse liststhe insert method inserts an item at an offsetthe remove and pop methods delete from list by value and by positionthe del statement deletes an item or sliceand index and slice assignment statements replace an item or entire section pick any four of these for the quiz dictionaries are primarily changed by assignment to new or existing keywhich creates or changes the key' entry in the table alsothe del statement deletes lists and dictionaries