Loading...
The Tag Analyst
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
Write a function that takes two lists of string tags. Return a dict with keys 'both' (tags in both lists, sorted), 'only_a' (tags only in the first list, sorted), and 'only_b' (tags only in the second list, sorted).
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.