Interview Questions
Interview Guides
Experiences
Explore
Get started
Sign in
Interview Guides
All questions
/
Coding
Parse Logs with Python
Medium
Asked at 1 company
Hash Tables
Strings
python
Problem
Write a Python script to parse a log file and extract all lines containing specific error codes.
Question
Answer
Problem
Write a Python script to parse a log file and extract all lines containing specific error codes.
Your answer
Edit
Preview
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.
0 words
target ~200
Try a free preview
Stuck? Get a hint
Past attempts
Up next
Parse Logs for Error Counts
Medium
Parse Logs for Error Codes
Easy
Parsing Logs with Python
Hard
Next question
Parse Logs with Python | Dataford Interview Questions