Loading...
The Genre Filter
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
You are given three datasets: a list of movies with genre, rating, and box office revenue; a list of actors with names; and a mapping table linking actors to movies. Return each actor's total box office revenue, but only counting movies that match a specified genre and meet a minimum rating threshold.
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.