Loading...

The Log Pulse

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

After a rough weekend on-call, the SRE team drops a raw log dump on your desk and wants a quick severity breakdown. Write a function that takes log lines in '[LEVEL] message' format and returns how many times each level appears, plus which level showed up the most.

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.