Compare an old and a new flat configuration dictionary. Return
{"added": [...], "removed": [...], "changed": [...]} where each list holds sorted keys: keys only in
new, keys only in old, and keys in both with different values.
Implement diff_config. Input: old: dict, new: dict. Returns: dict[str, list[str]].
def diff_config(old: dict, new: dict) -> dict[str, list[str]]:
return {"added": [], "removed": [], "changed": []}
Run executes the public tests. Submit grades against public and hidden tests.
Compare an old and a new flat configuration dictionary. Return
{"added": [...], "removed": [...], "changed": [...]} where each list holds sorted keys: keys only in
new, keys only in old, and keys in both with different values.
Implement diff_config. Input: old: dict, new: dict. Returns: dict[str, list[str]].
def diff_config(old: dict, new: dict) -> dict[str, list[str]]:
return {"added": [], "removed": [], "changed": []}
Run executes the public tests. Submit grades against public and hidden tests.