(continued from previous page{'name''aa''shares' 'price' setdefault('name''aab{'rise' 'fall': update(bm {'rise' 'name''aa''fall' 'shares' 'price' notem items() keys(and values(returns the result as iteratorwhich can be changed into list using 'list()methodm {'name''aa''shares': 'value': {'name''aa''shares' 'value' items( dict_items([('name''aa')('shares' )('value' )] list(ii [('name''aa')('shares' )('value' ) list( values() ['aa' set types set is an unordered collection of unique items unlike sequencesset does not provide indexing unlike dictionaryset does not provide key associated with values the items placed in the set must be immutable list can not be saved in set as shown belows set(type(ss add([ ]mutable objects list can not be saved in set traceback (most recent call last)file ""line in typeerrorunhashable type'lists add(( ) {( )immutable objects tuple can be saved in set add( { ( )sets are of two types 'setand 'frozensetabove codes are the example of setwhich is mutable in naturewhereas 'frozensetis immutable add operation can not be performed on frozenset builtin types for representing data