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
- L3
Problem
Given a string, return True if it is a valid IPv4 address: exactly four decimal octets separated by dots, each in range 0..255, with no leading zeros (except '0' itself).
Summary
Real and fake, mixed together.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.