Mid-Level
October 4, 2026

Spot the bug: Data Engineering

One snippet. Find the bug, or prove there isn't one.

python
1def read_error_lines(filepath: str):
2    f = open(filepath, "r")
3    for line in f:
4        if line.startswith("ERROR"):
5            yield line.strip()
6
7def first_ten_errors(filepath: str) -> list:
8    errors = []
9    for line in read_error_lines(filepath):
10        errors.append(line)
11        if len(errors) == 10:
12            break
13    return errors

Click the lines that carry the problem.

Your verdict

One attempt per day. The answer shows up right after.

Keep your streak

Create an account to keep your streak and track your progress.

Create an account