The Ones That Count
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L5
Problem
A workout tracker logs each session as a record carrying the activity `name` and its duration in `minutes`. Given the full log and a short list of activity names you actually care about, return the total minutes spent on just those activities.
Summary
Not every minute counts. Add up the ones that do.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.