Loading...

The Log Decoder

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

Domain
Python
Difficulty
easy
Seniority
mid, senior

Problem

Write a function that parses a list of structured log strings, where each line has space-separated key=value pairs like 'ts=1234 level=ERROR msg=timeout'. Return a list of dicts, one per line, with each key-value pair extracted as strings.

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.