adding elements in a dictionary code example Example: add item to python dictionary data = dict() data['key'] = value