Implementing an inner join in Python
This is a fundamental coding problem that tests your ability to implement a core data-management operation in Python. Inner joins are central to relational databases and data processing pipelines; this version asks you to build one using dictionaries as your table abstraction.
The problem requires you to identify matching keys across two input dictionaries and combine their values cleanly. Strong solutions are concise, handle the dictionary API correctly, and produce output that matches the specified tuple structure. Pay attention to edge cases: empty inputs, disjoint key sets, and the exact format of the result.
- Dictionary lookups and iteration in Python
- Set intersection and membership testing
- Tuple construction and unpacking
- Handling empty or mismatched inputs