The Log Decoder
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L4
Problem
You're ingesting raw application logs where each line in `lines` is a run of space-separated `key=value` tokens. Turn each line into a dict mapping its keys to their string values, one dict per line in the same order, and leave every value as a string even when it contains an `=`.
Summary
Every line holds a secret.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.