Loading...
The IP Validator
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
The log ingestion pipeline is choking on malformed IP addresses that slip through upstream validation. The warehouse team needs a filter that catches the bad ones before they hit the database. Given a string, determine whether it's a valid IPv4 address.
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.