Loading...

Extract Domain

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy

Problem

Our access log parser needs to extract just the domain from raw URL strings. Return everything between the :// and the next forward slash. Assume the URL always contains ://.

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.