Return a list of keys that appear in both dictionaries, sorted alphabetically.
Constraints
Example
>>> common_keys({'a': 1, 'b': 2}, {'b': 3, 'c': 4})
['b']
>>> common_keys({'x': 100, 'y': 200}, {'y': 1, 'z': 2})
['y']
>>> common_keys({'a': 1}, {'b': 2})
[]
>>> common_keys({}, {'a': 1})
[]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints