Loading...
The Address Surgeon
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
Write a function that parses a US address string in the format '123 Main St, Springfield, IL 62704'. Return a dict with keys 'street', 'city', 'state', and 'zip'. Assume the format is always valid and consistent.
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.