Loading...

The Tally Counter

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

A quality control system needs to count how many times a specific anomaly code appears in an event log. Given a list of integers and a target value, return the count of how many times the target appears in the list. Do not use the built-in count method.

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.