The Address Surgeon
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
We're normalizing US mailing addresses that arrive in one column as a single string like '123 Main St, Springfield, IL 62704'. Pull the street, city, state, and zip into their own fields on a dict.
Summary
One string hides a street, a city, a state, and a zip.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.