methods this documentation was generated from the python documentation available by typing help(dictin the python shell in the documentation found here the variable is reference to dictionary few methods were omitted here for brevity the official python documentation is at method dict(dict(mappingdict(seqreturns dict dict dict dict(**kwargsdict in del [kd == bool [kvalue type iterator int bool iter(dlen(dd != repr(dd[ ]= clear( copy( get( [, ] items(bool str none dict value type items comments new empty dictionary new dictionary initialized from mapping object' (keyvaluepairs new dictionary initialized as if viad {for kv in seqd[kv new dictionary initialized with the name=value pairs in the keyword arg list for exampledict(one= two= true if has key kelse false deletes key from dictionary returns true if dictionaries and have same keys mapped to same values returns value maps to in if is not mappedit raises keyerror exception returns an iterator over returns the number of keys in returns true if and have any different keys or keys map to different values returns string representation of stores the keyvalue pair , in remove all items from shallow copy of [kif in delse defaults to none set-like object providing view on ' items (continued(cspringer international publishing switzerland lee and hubbarddata structures and algorithms with pythonundergraduate topics in computer sciencedoi -- this copy belongs to 'acha