Loading...
Activity Time Ledger
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- senior
Problem
Our wellness dashboard needs to sum time spent on specific activities. Given a list of activity records (each a dict with 'name' and 'minutes' keys) and a target set of activity names, return the total minutes spent on just those activities.
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.