Dictionary within dictionary in Python 3,result = copy.deepcopy(old_dict) if old_dict is not None else {}