Loading...

Find Indices

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

Domain
Python
Difficulty
medium

Problem

A search operation needs all positions where a target value occurs in a list. Return a list of every index at which the target appears, in ascending order.

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.