out[ ]{' ''some value'' '[ ]elements can be accessed and inserted or set using the same syntax as accessing elements of list or tuplein [ ] [ 'an integerin [ ] out[ ]{ 'an integer'' ''some value'' '[ ]in [ ] [' 'out[ ][ you can check if dict contains key using the same syntax as with checking whether list or tuple contains valuein [ ]'bin out[ ]true values can be deleted either using the del keyword or the pop method (which simultaneously returns the value and deletes the key)in [ ] [ 'some valuein [ ] ['dummy''another valuein [ ]del [ in [ ]ret pop('dummy'in [ ]ret out[ ]'another valuethe keys and values method give you lists of the keys and valuesrespectively while the key-value pairs are not in any particular orderthese functions output the keys and values in the same orderin [ ] keys(out[ ][' '' ' in [ ] values(out[ ]['some value'[ ]'an integer'if you're using python dict keys(and dict values(are iterators instead of lists one dict can be merged into another using the update methodin [ ] update({' 'foo'' }in [ ] out[ ]{ 'an integer'' ''some value'' ''foo'' ' appendixpython language essentials www it-ebooks info