python extend dictionary with dictionary code example Example: extend a dictionary python a.update(b)